getAvailableContentStates method

Future<AvailableContentStates> getAvailableContentStates(
  1. String id
)

Gets content states that are available for the content to be set as. Will return all enabled Space Content States. Will only return most the 3 most recently published custom content states to match UI editor list. To get all custom content states, use the /content-states endpoint.

Permissions required: Permission to edit the content.

Implementation

Future<AvailableContentStates> getAvailableContentStates(String id) async {
  return AvailableContentStates.fromJson(await _client.send(
    'get',
    'wiki/rest/api/content/{id}/state/available',
    pathParameters: {
      'id': id,
    },
  ));
}