getSpaceTheme method

Future<Theme> getSpaceTheme(
  1. String spaceKey
)

Returns the theme selected for a space, if one is set. If no space theme is set, this means that the space is inheriting the global look and feel settings.

Permissions required: ‘View’ permission for the space.

Implementation

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