getLabelsForContent method

  1. @deprecated
Future<LabelArray> getLabelsForContent({
  1. required String id,
  2. String? prefix,
  3. int? start,
  4. int? limit,
})

Deprecated, use Confluence's v2 API.

Returns the labels on a piece of content.

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

Implementation

@deprecated
Future<LabelArray> getLabelsForContent(
    {required String id, String? prefix, int? start, int? limit}) async {
  return LabelArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/content/{id}/label',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (prefix != null) 'prefix': prefix,
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}