getContentProperty method

  1. @deprecated
Future<ContentProperty> getContentProperty({
  1. required String id,
  2. required String key,
  3. List<String>? expand,
  4. List<String>? status,
})

Returns a content property for a piece of content. For more information, see Confluence entity properties.

Permissions required: 'View' permission for the space, and permission to view the content if it is a page.

Implementation

@deprecated
Future<ContentProperty> getContentProperty(
    {required String id,
    required String key,
    List<String>? expand,
    List<String>? status}) async {
  return ContentProperty.fromJson(await _client.send(
    'get',
    'wiki/rest/api/content/{id}/property/{key}',
    pathParameters: {
      'id': id,
      'key': key,
    },
    queryParameters: {
      if (expand != null) 'expand': expand.map((e) => e).join(','),
      if (status != null) 'status': status.map((e) => e).join(','),
    },
  ));
}