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

Update Space color scheme

Update the color scheme for a space

PUT/rest/api/space/{spaceKey}/color-scheme
Path parameters
spaceKeystringrequired

space key of the space to set color scheme for.

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 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 a space with the user is not space admin for the given space.

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

Returned if a space with the given space key does not exist.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Bodyapplication/json
Request
curl -X PUT 'http://example.com:7990/confluence/rest/api/space/string/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?