Get the current color scheme type used for a space, it can be global or custom
string
RequiredReturns a color scheme type
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/color-scheme/type' \
--header 'Accept: application/json'
1
2
3
{
"type": "global"
}
Update the color scheme type used for a space, currently it can be global or custom
string
RequiredNew color scheme type
string
Returns the updated color scheme type
1
2
3
4
5
6
7
curl --request PUT \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/color-scheme/type' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"type": "global"
}'
1
2
3
{
"type": "global"
}
Get information about the current color scheme for a space
string
RequiredReturns a full JSON representation of color scheme
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/color-scheme' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"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"
}
}
Update the color scheme for a space
string
RequiredNew color scheme
ColorSchemeModel
ColorSchemeModel
Returns a full JSON representation of color scheme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
curl --request PUT \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/color-scheme' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"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"
}
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"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"
}
}
Reset the space color scheme to use global color scheme
string
RequiredReturns a JSON representation of color scheme
1
2
3
curl --request PUT \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/color-scheme/reset' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"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"
}
}
Rate this page: