getSpaceSettings method

Future<SpaceSettings> getSpaceSettings(
  1. String spaceKey
)

Returns the settings of a space. Currently only the routeOverrideEnabled setting can be returned.

Permissions required: 'View' permission for the space.

Implementation

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