getSpacePropertyById method

Future<SpaceProperty> getSpacePropertyById({
  1. required int spaceId,
  2. required int propertyId,
  3. bool? serializeIdsAsStrings,
})

Retrieve a space property by its id.

Permissions required: Permission to access the Confluence site ('Can use' global permission) and 'View' permission for the space.

Implementation

Future<SpaceProperty> getSpacePropertyById(
    {required int spaceId,
    required int propertyId,
    bool? serializeIdsAsStrings}) async {
  return SpaceProperty.fromJson(await _client.send(
    'get',
    'spaces/{space-id}/properties/{property-id}',
    pathParameters: {
      'space-id': '$spaceId',
      'property-id': '$propertyId',
    },
    queryParameters: {
      if (serializeIdsAsStrings != null)
        'serialize-ids-as-strings': '$serializeIdsAsStrings',
    },
  ));
}