Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Set global color scheme

Update the current color scheme of the instance

PUT/rest/api/color-scheme
Request body
application/json

New color scheme

colorSchemeModelLightColorSchemeModel
Show properties
topBarColorstring
topBarMenuSelectedBgColorstring
topBarMenuSelectedTextColorstring
breadcrumbsTextColorstring
headerButtonBgColorstring
headerButtonTextColorstring
searchFieldTextColorstring
searchFieldBgColorstring
menuItemSelectedBgColorstring
menuItemSelectedTextColorstring
menuItemTextColorstring
headingTextColorstring
linkColorstring
colorSchemeModelDarkColorSchemeModel
Show properties
topBarColorstring
topBarMenuSelectedBgColorstring
topBarMenuSelectedTextColorstring
breadcrumbsTextColorstring
headerButtonBgColorstring
headerButtonTextColorstring
searchFieldTextColorstring
searchFieldBgColorstring
menuItemSelectedBgColorstring
menuItemSelectedTextColorstring
menuItemTextColorstring
headingTextColorstring
linkColorstring
Responses
200

Returns a full JSON representation of the updated color scheme

colorSchemeModelLightColorSchemeModel
Show properties
topBarColorstring
topBarMenuSelectedBgColorstring
topBarMenuSelectedTextColorstring
breadcrumbsTextColorstring
headerButtonBgColorstring
headerButtonTextColorstring
searchFieldTextColorstring
searchFieldBgColorstring
menuItemSelectedBgColorstring
menuItemSelectedTextColorstring
menuItemTextColorstring
headingTextColorstring
linkColorstring
colorSchemeModelDarkColorSchemeModel
Show properties
topBarColorstring
topBarMenuSelectedBgColorstring
topBarMenuSelectedTextColorstring
breadcrumbsTextColorstring
headerButtonBgColorstring
headerButtonTextColorstring
searchFieldTextColorstring
searchFieldBgColorstring
menuItemSelectedBgColorstring
menuItemSelectedTextColorstring
menuItemTextColorstring
headingTextColorstring
linkColorstring
400

Returned if there are invalid colors in the request

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
403

Returned if the user is not a site admin

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Bodyapplication/json
Request
curl -X PUT 'http://example.com:7990/confluence/rest/api/color-scheme' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "colorSchemeModelLight": {
    "topBarColor": "#000000",
    "topBarMenuSelectedBgColor": "#000000",
    "topBarMenuSelectedTextColor": "#000000",
    "breadcrumbsTextColor": "#000000",
    "headerButtonBgColor": "#000000",
    "headerButtonTextColor": "#000000",
    "searchFieldTextColor": "#000000",
    "searchFieldBgColor": "#000000",
    "menuItemSelectedBgColor": "#000000",
    "menuItemSelectedTextColor": "#000000",
    "menuItemTextColor": "#000000",
    "headingTextColor": "#000000",
    "linkColor": "#000000"
  },
  "colorSchemeModelDark": {
    "topBarColor": "#000000",
    "topBarMenuSelectedBgColor": "#000000",
    "topBarMenuSelectedTextColor": "#000000",
    "breadcrumbsTextColor": "#000000",
    "headerButtonBgColor": "#000000",
    "headerButtonTextColor": "#000000",
    "searchFieldTextColor": "#000000",
    "searchFieldBgColor": "#000000",
    "menuItemSelectedBgColor": "#000000",
    "menuItemSelectedTextColor": "#000000",
    "menuItemTextColor": "#000000",
    "headingTextColor": "#000000",
    "linkColor": "#000000"
  }
}'
Response
{
  "colorSchemeModelLight": {
    "topBarColor": "#000000",
    "topBarMenuSelectedBgColor": "#000000",
    "topBarMenuSelectedTextColor": "#000000",
    "breadcrumbsTextColor": "#000000",
    "headerButtonBgColor": "#000000",
    "headerButtonTextColor": "#000000",
    "searchFieldTextColor": "#000000",
    "searchFieldBgColor": "#000000",
    "menuItemSelectedBgColor": "#000000",
    "menuItemSelectedTextColor": "#000000",
    "menuItemTextColor": "#000000",
    "headingTextColor": "#000000",
    "linkColor": "#000000"
  },
  "colorSchemeModelDark": {
    "topBarColor": "#000000",
    "topBarMenuSelectedBgColor": "#000000",
    "topBarMenuSelectedTextColor": "#000000",
    "breadcrumbsTextColor": "#000000",
    "headerButtonBgColor": "#000000",
    "headerButtonTextColor": "#000000",
    "searchFieldTextColor": "#000000",
    "searchFieldBgColor": "#000000",
    "menuItemSelectedBgColor": "#000000",
    "menuItemSelectedTextColor": "#000000",
    "menuItemTextColor": "#000000",
    "headingTextColor": "#000000",
    "linkColor": "#000000"
  }
}

Was this page helpful?