setSpaceTheme method

Future<Theme> setSpaceTheme({
  1. required String spaceKey,
  2. required ThemeUpdate body,
})

Sets the theme for a space. Note, if you want to reset the space theme to the default Confluence theme, use the 'Reset space theme' method instead of this method.

Permissions required: 'Admin' permission for the space.

Implementation

Future<Theme> setSpaceTheme(
    {required String spaceKey, required ThemeUpdate body}) async {
  return Theme.fromJson(await _client.send(
    'put',
    'wiki/rest/api/space/{spaceKey}/theme',
    pathParameters: {
      'spaceKey': spaceKey,
    },
    body: body.toJson(),
  ));
}