Chilkat Online Tools

PowerBuilder / Atlassian Confluence Cloud / Set look and feel settings

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Json
oleobject loo_SbRequestBody
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Selected
string ls_Color
string ls_LinksColor
string ls_Value
string ls_ColorValue
string ls_BackgroundColorValue
string ls_ButtonValue
string ls_PrimaryNavigationValue
string ls_SecondaryNavigationValue
string ls_SearchValue
string ls_ScreenValue
string ls_ContainerValue
string ls_HeaderValue
string ls_BodyValue
string ls_BordersAndDividersColor
string ls_HeadingsColor
string ls_HoverOrFocusValue

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

loo_Http = create oleobject
li_rc = loo_Http.ConnectToNewObject("Chilkat_9_5_0.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

// 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>"
//     }
//   }
// }

loo_Json = create oleobject
li_rc = loo_Json.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

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

// Adds the "Authorization: Bearer <access_token>" header.
loo_Http.AuthToken = "<access_token>"
loo_Http.SetRequestHeader("Content-Type","application/json")

loo_SbRequestBody = create oleobject
li_rc = loo_SbRequestBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

loo_Json.EmitSb(loo_SbRequestBody)

loo_Resp = loo_Http.PTextSb("PUT","https://your-domain.atlassian.net/wiki/rest/api/settings/lookandfeel/selected?spaceKey=<string>",loo_SbRequestBody,"utf-8","application/json",0,0)
if loo_Http.LastMethodSuccess = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_Json
    destroy loo_SbRequestBody
    return
end if

loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

loo_Resp.GetBodySb(loo_SbResponseBody)

loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Resp.Header
    Write-Debug "Failed."
    destroy loo_Resp
    destroy loo_Http
    destroy loo_Json
    destroy loo_SbRequestBody
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

destroy loo_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

ls_Selected = loo_JResp.StringOf("selected")
ls_Color = loo_JResp.StringOf("global.headings.color")
ls_LinksColor = loo_JResp.StringOf("global.links.color")
ls_Value = loo_JResp.StringOf("global.menus.hoverOrFocus.value")
ls_ColorValue = loo_JResp.StringOf("global.menus.color.value")
ls_BackgroundColorValue = loo_JResp.StringOf("global.header.backgroundColor.value")
ls_ButtonValue = loo_JResp.StringOf("global.header.button.value")
ls_PrimaryNavigationValue = loo_JResp.StringOf("global.header.primaryNavigation.value")
ls_SecondaryNavigationValue = loo_JResp.StringOf("global.header.secondaryNavigation.value")
ls_SearchValue = loo_JResp.StringOf("global.header.search.value")
ls_ScreenValue = loo_JResp.StringOf("global.content.screen.value")
ls_ContainerValue = loo_JResp.StringOf("global.content.container.value")
ls_HeaderValue = loo_JResp.StringOf("global.content.header.value")
ls_BodyValue = loo_JResp.StringOf("global.content.body.value")
ls_BordersAndDividersColor = loo_JResp.StringOf("global.bordersAndDividers.color")
ls_HeadingsColor = loo_JResp.StringOf("custom.headings.color")
ls_LinksColor = loo_JResp.StringOf("custom.links.color")
ls_HoverOrFocusValue = loo_JResp.StringOf("custom.menus.hoverOrFocus.value")
ls_ColorValue = loo_JResp.StringOf("custom.menus.color.value")
ls_BackgroundColorValue = loo_JResp.StringOf("custom.header.backgroundColor.value")
ls_ButtonValue = loo_JResp.StringOf("custom.header.button.value")
ls_PrimaryNavigationValue = loo_JResp.StringOf("custom.header.primaryNavigation.value")
ls_SecondaryNavigationValue = loo_JResp.StringOf("custom.header.secondaryNavigation.value")
ls_SearchValue = loo_JResp.StringOf("custom.header.search.value")
ls_ScreenValue = loo_JResp.StringOf("custom.content.screen.value")
ls_ContainerValue = loo_JResp.StringOf("custom.content.container.value")
ls_HeaderValue = loo_JResp.StringOf("custom.content.header.value")
ls_BodyValue = loo_JResp.StringOf("custom.content.body.value")
ls_BordersAndDividersColor = loo_JResp.StringOf("custom.bordersAndDividers.color")
ls_HeadingsColor = loo_JResp.StringOf("theme.headings.color")
ls_LinksColor = loo_JResp.StringOf("theme.links.color")
ls_HoverOrFocusValue = loo_JResp.StringOf("theme.menus.hoverOrFocus.value")
ls_ColorValue = loo_JResp.StringOf("theme.menus.color.value")
ls_BackgroundColorValue = loo_JResp.StringOf("theme.header.backgroundColor.value")
ls_ButtonValue = loo_JResp.StringOf("theme.header.button.value")
ls_PrimaryNavigationValue = loo_JResp.StringOf("theme.header.primaryNavigation.value")
ls_SecondaryNavigationValue = loo_JResp.StringOf("theme.header.secondaryNavigation.value")
ls_SearchValue = loo_JResp.StringOf("theme.header.search.value")
ls_ScreenValue = loo_JResp.StringOf("theme.content.screen.value")
ls_ContainerValue = loo_JResp.StringOf("theme.content.container.value")
ls_HeaderValue = loo_JResp.StringOf("theme.content.header.value")
ls_BodyValue = loo_JResp.StringOf("theme.content.body.value")
ls_BordersAndDividersColor = loo_JResp.StringOf("theme.bordersAndDividers.color")


destroy loo_Http
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
destroy loo_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": ""
    }
  ]
}