updateLookAndFeelSettings method

Future<LookAndFeelWithLinks> updateLookAndFeelSettings({
  1. String? spaceKey,
  2. required LookAndFeel body,
})

Updates the look and feel settings for the site or for a single space. If custom settings exist, they are updated. If no custom settings exist, then a set of custom settings is created.

Note, if a theme is selected for a space, the space look and feel settings are provided by the theme and cannot be overridden.

Permissions required: 'Admin' permission for the space.

Implementation

Future<LookAndFeelWithLinks> updateLookAndFeelSettings(
    {String? spaceKey, required LookAndFeel body}) async {
  return LookAndFeelWithLinks.fromJson(await _client.send(
    'post',
    'wiki/rest/api/settings/lookandfeel/custom',
    queryParameters: {
      if (spaceKey != null) 'spaceKey': spaceKey,
    },
    body: body.toJson(),
  ));
}