Rate this page:
GET /wiki/rest/api/settings/theme
Returns all themes, not including the default theme.
Permissions required: None
App scope required: READ
manage:confluence-configuration
integer
The starting index of the returned themes.
0
, Minimum: 0
, Format: int32
integer
The maximum number of themes to return per page. Note, this may be restricted by fixed system limits.
100
, Minimum: 0
, Format: int32
1 2 3
curl --request GET \
--url 'https://your-domain.atlassian.net/wiki/rest/api/settings/theme' \
--header 'Accept: application/json'
Returned if the requested themes are returned.
Content type | Value |
---|---|
application/json |
GET /wiki/rest/api/settings/theme/selected
Returns the globally assigned theme.
Permissions required: None
App scope required: READ
manage:confluence-configuration
1 2 3
curl --request GET \
--url 'https://your-domain.atlassian.net/wiki/rest/api/settings/theme/selected' \
--header 'Accept: application/json'
Returned if the global theme is returned.
Content type | Value |
---|---|
application/json | allOf [ThemeNoLinks, object] |
GET /wiki/rest/api/settings/theme/{themeKey}
Returns a theme. This includes information about the theme name, description, and icon.
Permissions required: None
App scope required: READ
manage:confluence-configuration
string
The key of the theme to be returned.
1 2 3
curl --request GET \
--url 'https://your-domain.atlassian.net/wiki/rest/api/settings/theme/{themeKey}' \
--header 'Accept: application/json'
Returned if the requested theme is returned.
Content type | Value |
---|---|
application/json | allOf [ThemeNoLinks, object] |
GET /wiki/rest/api/space/{spaceKey}/theme
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.
App scope required: READ
read:confluence-space.summary
string
The key of the space to be queried for its theme.
1 2 3
curl --request GET \
--url 'https://your-domain.atlassian.net/wiki/rest/api/space/{spaceKey}/theme' \
--header 'Accept: application/json'
Returned if the requested theme is returned.
Content type | Value |
---|---|
application/json | allOf [ThemeNoLinks, object] |
PUT /wiki/rest/api/space/{spaceKey}/theme
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.
App scope required: WRITE
write:confluence-space
string
The key of the space to set the theme for.
string
The key of the theme to be set as the space theme.
1 2 3 4 5 6 7
curl --request PUT \
--url 'https://your-domain.atlassian.net/wiki/rest/api/space/{spaceKey}/theme' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"themeKey": "<string>"
}'
Returned if the theme was set for the space.
Content type | Value |
---|---|
application/json | allOf [ThemeNoLinks, object] |
DELETE /wiki/rest/api/space/{spaceKey}/theme
Resets the space theme. This means that the space will inherit the global look and feel settings
Permissions required: 'Admin' permission for the space.
App scope required: DELETE
write:confluence-space
string
The key of the space to reset the theme for.
1 2
curl --request DELETE \
--url 'https://your-domain.atlassian.net/wiki/rest/api/space/{spaceKey}/theme'
Returned if the theme was reset for the space.
Rate this page: