Chilkat Online Tools

TCL / Atlassian Confluence Cloud / Set look and feel settings

Back to Collection Items

load ./chilkat.dll

# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.

set http [new_CkHttp]

# Use this online tool to generate code from sample JSON: Generate Code to Create JSON

# The following JSON is sent in the request body.

# {
#   "selected": "<string>",
#   "global": {
#     "headings": {
#       "color": "<string>"
#     },
#     "links": {
#       "color": "<string>"
#     },
#     "menus": {
#       "hoverOrFocus": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "color": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "header": {
#       "backgroundColor": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "button": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "primaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "secondaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "search": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "content": {
#       "screen": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "container": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "header": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "body": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "bordersAndDividers": {
#       "color": "<string>"
#     }
#   },
#   "custom": {
#     "headings": {
#       "color": "<string>"
#     },
#     "links": {
#       "color": "<string>"
#     },
#     "menus": {
#       "hoverOrFocus": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "color": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "header": {
#       "backgroundColor": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "button": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "primaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "secondaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "search": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "content": {
#       "screen": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "container": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "header": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "body": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "bordersAndDividers": {
#       "color": "<string>"
#     }
#   }
# }

set json [new_CkJsonObject]

CkJsonObject_UpdateString $json "selected" "<string>"
CkJsonObject_UpdateString $json "global.headings.color" "<string>"
CkJsonObject_UpdateString $json "global.links.color" "<string>"
CkJsonObject_UpdateString $json "global.menus.hoverOrFocus.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.menus.color.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.header.backgroundColor.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.header.button.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.header.primaryNavigation.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.header.secondaryNavigation.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.header.search.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.content.screen.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.content.container.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.content.header.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.content.body.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "global.bordersAndDividers.color" "<string>"
CkJsonObject_UpdateString $json "custom.headings.color" "<string>"
CkJsonObject_UpdateString $json "custom.links.color" "<string>"
CkJsonObject_UpdateString $json "custom.menus.hoverOrFocus.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.menus.color.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.header.backgroundColor.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.header.button.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.header.primaryNavigation.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.header.secondaryNavigation.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.header.search.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.content.screen.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.content.container.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.content.header.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.content.body.value" "<Error: Too many levels of nesting to fake this schema>"
CkJsonObject_UpdateString $json "custom.bordersAndDividers.color" "<string>"

# Adds the "Authorization: Bearer <access_token>" header.
CkHttp_put_AuthToken $http "<access_token>"
CkHttp_SetRequestHeader $http "Content-Type" "application/json"

set sbRequestBody [new_CkStringBuilder]

CkJsonObject_EmitSb $json $sbRequestBody

# resp is a CkHttpResponse
set resp [CkHttp_PTextSb $http "PUT" "https://your-domain.atlassian.net/wiki/rest/api/settings/lookandfeel/selected?spaceKey=<string>" $sbRequestBody "utf-8" "application/json" 0 0]
if {[CkHttp_get_LastMethodSuccess $http] == 0} then {
    puts [CkHttp_lastErrorText $http]
    delete_CkHttp $http
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    exit
}

set sbResponseBody [new_CkStringBuilder]

CkHttpResponse_GetBodySb $resp $sbResponseBody

set jResp [new_CkJsonObject]

CkJsonObject_LoadSb $jResp $sbResponseBody
CkJsonObject_put_EmitCompact $jResp 0

puts "Response Body:"
puts [CkJsonObject_emit $jResp]

set respStatusCode [CkHttpResponse_get_StatusCode $resp]
puts "Response Status Code = $respStatusCode"
if {$respStatusCode >= 400} then {
    puts "Response Header:"
    puts [CkHttpResponse_header $resp]
    puts "Failed."
    delete_CkHttpResponse $resp

    delete_CkHttp $http
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    delete_CkStringBuilder $sbResponseBody
    delete_CkJsonObject $jResp
    exit
}

delete_CkHttpResponse $resp

# Sample JSON response:
# (Sample code for parsing the JSON response is shown below)

# {
#   "selected": "global",
#   "global": {
#     "headings": {
#       "color": "<string>"
#     },
#     "links": {
#       "color": "<string>"
#     },
#     "menus": {
#       "hoverOrFocus": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "color": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "header": {
#       "backgroundColor": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "button": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "primaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "secondaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "search": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "content": {
#       "screen": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "container": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "header": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "body": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "bordersAndDividers": {
#       "color": "<string>"
#     }
#   },
#   "custom": {
#     "headings": {
#       "color": "<string>"
#     },
#     "links": {
#       "color": "<string>"
#     },
#     "menus": {
#       "hoverOrFocus": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "color": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "header": {
#       "backgroundColor": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "button": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "primaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "secondaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "search": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "content": {
#       "screen": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "container": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "header": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "body": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "bordersAndDividers": {
#       "color": "<string>"
#     }
#   },
#   "theme": {
#     "headings": {
#       "color": "<string>"
#     },
#     "links": {
#       "color": "<string>"
#     },
#     "menus": {
#       "hoverOrFocus": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "color": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "header": {
#       "backgroundColor": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "button": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "primaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "secondaryNavigation": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "search": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "content": {
#       "screen": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "container": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "header": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       },
#       "body": {
#         "value": "<Error: Too many levels of nesting to fake this schema>"
#       }
#     },
#     "bordersAndDividers": {
#       "color": "<string>"
#     }
#   }
# }

# Sample code for parsing the JSON response...
# Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

set selected [CkJsonObject_stringOf $jResp "selected"]
set Color [CkJsonObject_stringOf $jResp "global.headings.color"]
set LinksColor [CkJsonObject_stringOf $jResp "global.links.color"]
set Value [CkJsonObject_stringOf $jResp "global.menus.hoverOrFocus.value"]
set ColorValue [CkJsonObject_stringOf $jResp "global.menus.color.value"]
set BackgroundColorValue [CkJsonObject_stringOf $jResp "global.header.backgroundColor.value"]
set ButtonValue [CkJsonObject_stringOf $jResp "global.header.button.value"]
set PrimaryNavigationValue [CkJsonObject_stringOf $jResp "global.header.primaryNavigation.value"]
set SecondaryNavigationValue [CkJsonObject_stringOf $jResp "global.header.secondaryNavigation.value"]
set SearchValue [CkJsonObject_stringOf $jResp "global.header.search.value"]
set ScreenValue [CkJsonObject_stringOf $jResp "global.content.screen.value"]
set ContainerValue [CkJsonObject_stringOf $jResp "global.content.container.value"]
set HeaderValue [CkJsonObject_stringOf $jResp "global.content.header.value"]
set BodyValue [CkJsonObject_stringOf $jResp "global.content.body.value"]
set BordersAndDividersColor [CkJsonObject_stringOf $jResp "global.bordersAndDividers.color"]
set HeadingsColor [CkJsonObject_stringOf $jResp "custom.headings.color"]
set LinksColor [CkJsonObject_stringOf $jResp "custom.links.color"]
set HoverOrFocusValue [CkJsonObject_stringOf $jResp "custom.menus.hoverOrFocus.value"]
set ColorValue [CkJsonObject_stringOf $jResp "custom.menus.color.value"]
set BackgroundColorValue [CkJsonObject_stringOf $jResp "custom.header.backgroundColor.value"]
set ButtonValue [CkJsonObject_stringOf $jResp "custom.header.button.value"]
set PrimaryNavigationValue [CkJsonObject_stringOf $jResp "custom.header.primaryNavigation.value"]
set SecondaryNavigationValue [CkJsonObject_stringOf $jResp "custom.header.secondaryNavigation.value"]
set SearchValue [CkJsonObject_stringOf $jResp "custom.header.search.value"]
set ScreenValue [CkJsonObject_stringOf $jResp "custom.content.screen.value"]
set ContainerValue [CkJsonObject_stringOf $jResp "custom.content.container.value"]
set HeaderValue [CkJsonObject_stringOf $jResp "custom.content.header.value"]
set BodyValue [CkJsonObject_stringOf $jResp "custom.content.body.value"]
set BordersAndDividersColor [CkJsonObject_stringOf $jResp "custom.bordersAndDividers.color"]
set HeadingsColor [CkJsonObject_stringOf $jResp "theme.headings.color"]
set LinksColor [CkJsonObject_stringOf $jResp "theme.links.color"]
set HoverOrFocusValue [CkJsonObject_stringOf $jResp "theme.menus.hoverOrFocus.value"]
set ColorValue [CkJsonObject_stringOf $jResp "theme.menus.color.value"]
set BackgroundColorValue [CkJsonObject_stringOf $jResp "theme.header.backgroundColor.value"]
set ButtonValue [CkJsonObject_stringOf $jResp "theme.header.button.value"]
set PrimaryNavigationValue [CkJsonObject_stringOf $jResp "theme.header.primaryNavigation.value"]
set SecondaryNavigationValue [CkJsonObject_stringOf $jResp "theme.header.secondaryNavigation.value"]
set SearchValue [CkJsonObject_stringOf $jResp "theme.header.search.value"]
set ScreenValue [CkJsonObject_stringOf $jResp "theme.content.screen.value"]
set ContainerValue [CkJsonObject_stringOf $jResp "theme.content.container.value"]
set HeaderValue [CkJsonObject_stringOf $jResp "theme.content.header.value"]
set BodyValue [CkJsonObject_stringOf $jResp "theme.content.body.value"]
set BordersAndDividersColor [CkJsonObject_stringOf $jResp "theme.bordersAndDividers.color"]

delete_CkHttp $http
delete_CkJsonObject $json
delete_CkStringBuilder $sbRequestBody
delete_CkStringBuilder $sbResponseBody
delete_CkJsonObject $jResp

Curl Command

curl -X PUT
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-d '{
    "selected": "<string>",
    "global": {
        "headings": {
            "color": "<string>"
        },
        "links": {
            "color": "<string>"
        },
        "menus": {
            "hoverOrFocus": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "color": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            }
        },
        "header": {
            "backgroundColor": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "button": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "primaryNavigation": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "secondaryNavigation": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "search": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            }
        },
        "content": {
            "screen": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "container": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "header": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "body": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            }
        },
        "bordersAndDividers": {
            "color": "<string>"
        }
    },
    "custom": {
        "headings": {
            "color": "<string>"
        },
        "links": {
            "color": "<string>"
        },
        "menus": {
            "hoverOrFocus": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "color": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            }
        },
        "header": {
            "backgroundColor": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "button": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "primaryNavigation": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "secondaryNavigation": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "search": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            }
        },
        "content": {
            "screen": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "container": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "header": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "body": {
                "value": "<Error: Too many levels of nesting to fake this schema>"
            }
        },
        "bordersAndDividers": {
            "color": "<string>"
        }
    }
}'
https://your-domain.atlassian.net/wiki/rest/api/settings/lookandfeel/selected?spaceKey=<string>

Postman Collection Item JSON

{
  "name": "Set look and feel settings",
  "request": {
    "auth": {
      "type": "oauth2"
    },
    "method": "PUT",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"selected\": \"<string>\",\n    \"global\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    },\n    \"custom\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    }\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/api/settings/lookandfeel/selected?spaceKey=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "settings",
        "lookandfeel",
        "selected"
      ],
      "query": [
        {
          "key": "spaceKey",
          "value": "<string>",
          "description": "The key of the space for which the look and feel settings will be\nset. If this is not set, the global look and feel settings will be\nset."
        }
      ]
    },
    "description": "Sets the look and feel settings to either the default settings or the\ncustom settings, for the site or a single space. Note, the default\nspace settings are inherited from the current global settings.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space."
  },
  "response": [
    {
      "name": "Returned if the look and feel settings were set.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": {
              "content": "Added as a part of security scheme: oauth2",
              "type": "text/plain"
            },
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"selected\": \"<string>\",\n    \"global\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    },\n    \"custom\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/settings/lookandfeel/selected?spaceKey=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "settings",
            "lookandfeel",
            "selected"
          ],
          "query": [
            {
              "key": "spaceKey",
              "value": "<string>"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"selected\": \"global\",\n \"global\": {\n  \"headings\": {\n   \"color\": \"<string>\"\n  },\n  \"links\": {\n   \"color\": \"<string>\"\n  },\n  \"menus\": {\n   \"hoverOrFocus\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"color\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"header\": {\n   \"backgroundColor\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"button\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"primaryNavigation\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"secondaryNavigation\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"search\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"content\": {\n   \"screen\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"container\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"header\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"body\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"bordersAndDividers\": {\n   \"color\": \"<string>\"\n  }\n },\n \"custom\": {\n  \"headings\": {\n   \"color\": \"<string>\"\n  },\n  \"links\": {\n   \"color\": \"<string>\"\n  },\n  \"menus\": {\n   \"hoverOrFocus\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"color\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"header\": {\n   \"backgroundColor\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"button\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"primaryNavigation\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"secondaryNavigation\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"search\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"content\": {\n   \"screen\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"container\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"header\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"body\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"bordersAndDividers\": {\n   \"color\": \"<string>\"\n  }\n },\n \"theme\": {\n  \"headings\": {\n   \"color\": \"<string>\"\n  },\n  \"links\": {\n   \"color\": \"<string>\"\n  },\n  \"menus\": {\n   \"hoverOrFocus\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"color\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"header\": {\n   \"backgroundColor\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"button\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"primaryNavigation\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"secondaryNavigation\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"search\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"content\": {\n   \"screen\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"container\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"header\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   },\n   \"body\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n   }\n  },\n  \"bordersAndDividers\": {\n   \"color\": \"<string>\"\n  }\n }\n}"
    },
    {
      "name": "Returned if;\n\n- The `spaceKey` is invalid.\n- The look and feel type is invalid.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": {
              "content": "Added as a part of security scheme: oauth2",
              "type": "text/plain"
            },
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"selected\": \"<string>\",\n    \"global\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    },\n    \"custom\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/settings/lookandfeel/selected?spaceKey=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "settings",
            "lookandfeel",
            "selected"
          ],
          "query": [
            {
              "key": "spaceKey",
              "value": "<string>"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Returned if the look and feel type is set to 'theme' but the\nspace/site doesn't have a theme assigned.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": {
              "content": "Added as a part of security scheme: oauth2",
              "type": "text/plain"
            },
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"selected\": \"<string>\",\n    \"global\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    },\n    \"custom\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/settings/lookandfeel/selected?spaceKey=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "settings",
            "lookandfeel",
            "selected"
          ],
          "query": [
            {
              "key": "spaceKey",
              "value": "<string>"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Returned if there is no space with the given `spaceKey`.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": {
              "content": "Added as a part of security scheme: oauth2",
              "type": "text/plain"
            },
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"selected\": \"<string>\",\n    \"global\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    },\n    \"custom\": {\n        \"headings\": {\n            \"color\": \"<string>\"\n        },\n        \"links\": {\n            \"color\": \"<string>\"\n        },\n        \"menus\": {\n            \"hoverOrFocus\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"color\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"header\": {\n            \"backgroundColor\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"button\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"primaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"secondaryNavigation\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"search\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"content\": {\n            \"screen\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"container\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"header\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            },\n            \"body\": {\n                \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n            }\n        },\n        \"bordersAndDividers\": {\n            \"color\": \"<string>\"\n        }\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/settings/lookandfeel/selected?spaceKey=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "settings",
            "lookandfeel",
            "selected"
          ],
          "query": [
            {
              "key": "spaceKey",
              "value": "<string>"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}