updateSpaceSettings method

Future<SpaceSettings> updateSpaceSettings({
  1. required String spaceKey,
  2. required SpaceSettingsUpdate body,
})

Updates the settings for a space. Currently only the routeOverrideEnabled setting can be updated.

Permissions required: 'Admin' permission for the space.

Implementation

Future<SpaceSettings> updateSpaceSettings(
    {required String spaceKey, required SpaceSettingsUpdate body}) async {
  return SpaceSettings.fromJson(await _client.send(
    'put',
    'wiki/rest/api/space/{spaceKey}/settings',
    pathParameters: {
      'spaceKey': spaceKey,
    },
    body: body.toJson(),
  ));
}