getThemes method

Future<ThemeArray> getThemes({
  1. int? start,
  2. int? limit,
})

Returns all admin-driven themes, not including the default theme. Note that this API only applies to themes set for an entire space or site by the admin. User-driven theming controls (Light, Dark, and match browser) are an unrelated feature. Admin-driven themes will override user-driven themes.

Permissions required: None

Implementation

Future<ThemeArray> getThemes({int? start, int? limit}) async {
  return ThemeArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/settings/theme',
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}