getContentStateSettings method

Future<ContentStateSettings> getContentStateSettings(
  1. String spaceKey
)

Get object describing whether content states are allowed at all, if custom content states or space content states are restricted, and a list of space content states allowed for the space if they are not restricted.

Permissions required: Space admin permission

Implementation

Future<ContentStateSettings> getContentStateSettings(String spaceKey) async {
  return ContentStateSettings.fromJson(await _client.send(
    'get',
    'wiki/rest/api/space/{spaceKey}/state/settings',
    pathParameters: {
      'spaceKey': spaceKey,
    },
  ));
}