Chilkat Online Tools

DataFlex / Atlassian Confluence Cloud / Set look and feel settings

Back to Collection Items

Use ChilkatAx-9.5.0-win32.pkg

Procedure Test
    Handle hoHttp
    Boolean iSuccess
    Handle hoJson
    Variant vSbRequestBody
    Handle hoSbRequestBody
    Variant vResp
    Handle hoResp
    Variant vSbResponseBody
    Handle hoSbResponseBody
    Handle hoJResp
    Integer iRespStatusCode
    String sSelected
    String sColor
    String sLinksColor
    String sValue
    String sColorValue
    String sBackgroundColorValue
    String sButtonValue
    String sPrimaryNavigationValue
    String sSecondaryNavigationValue
    String sSearchValue
    String sScreenValue
    String sContainerValue
    String sHeaderValue
    String sBodyValue
    String sBordersAndDividersColor
    String sHeadingsColor
    String sHoverOrFocusValue
    String sTemp1
    Boolean bTemp1

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

    Get Create (RefClass(cComChilkatHttp)) To hoHttp
    If (Not(IsComObjectCreated(hoHttp))) Begin
        Send CreateComObject of hoHttp
    End

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

    Get Create (RefClass(cComChilkatJsonObject)) To hoJson
    If (Not(IsComObjectCreated(hoJson))) Begin
        Send CreateComObject of hoJson
    End
    Get ComUpdateString Of hoJson "selected" "<string>" To iSuccess
    Get ComUpdateString Of hoJson "global.headings.color" "<string>" To iSuccess
    Get ComUpdateString Of hoJson "global.links.color" "<string>" To iSuccess
    Get ComUpdateString Of hoJson "global.menus.hoverOrFocus.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.menus.color.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.header.backgroundColor.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.header.button.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.header.primaryNavigation.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.header.secondaryNavigation.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.header.search.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.content.screen.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.content.container.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.content.header.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.content.body.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "global.bordersAndDividers.color" "<string>" To iSuccess
    Get ComUpdateString Of hoJson "custom.headings.color" "<string>" To iSuccess
    Get ComUpdateString Of hoJson "custom.links.color" "<string>" To iSuccess
    Get ComUpdateString Of hoJson "custom.menus.hoverOrFocus.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.menus.color.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.header.backgroundColor.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.header.button.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.header.primaryNavigation.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.header.secondaryNavigation.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.header.search.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.content.screen.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.content.container.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.content.header.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.content.body.value" "<Error: Too many levels of nesting to fake this schema>" To iSuccess
    Get ComUpdateString Of hoJson "custom.bordersAndDividers.color" "<string>" To iSuccess

    // Adds the "Authorization: Bearer <access_token>" header.
    Set ComAuthToken Of hoHttp To "<access_token>"
    Send ComSetRequestHeader To hoHttp "Content-Type" "application/json"

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbRequestBody
    If (Not(IsComObjectCreated(hoSbRequestBody))) Begin
        Send CreateComObject of hoSbRequestBody
    End
    Get pvComObject of hoSbRequestBody to vSbRequestBody
    Get ComEmitSb Of hoJson vSbRequestBody To iSuccess

    Get pvComObject of hoSbRequestBody to vSbRequestBody
    Get ComPTextSb Of hoHttp "PUT" "https://your-domain.atlassian.net/wiki/rest/api/settings/lookandfeel/selected?spaceKey=<string>" vSbRequestBody "utf-8" "application/json" False False To vResp
    If (IsComObject(vResp)) Begin
        Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
        Set pvComObject Of hoResp To vResp
    End
    Get ComLastMethodSuccess Of hoHttp To bTemp1
    If (bTemp1 = False) Begin
        Get ComLastErrorText Of hoHttp To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
    If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
        Send CreateComObject of hoSbResponseBody
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComGetBodySb Of hoResp vSbResponseBody To iSuccess

    Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
    If (Not(IsComObjectCreated(hoJResp))) Begin
        Send CreateComObject of hoJResp
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
    Set ComEmitCompact Of hoJResp To False

    Showln "Response Body:"
    Get ComEmit Of hoJResp To sTemp1
    Showln sTemp1

    Get ComStatusCode Of hoResp To iRespStatusCode
    Showln "Response Status Code = " iRespStatusCode
    If (iRespStatusCode >= 400) Begin
        Showln "Response Header:"
        Get ComHeader Of hoResp To sTemp1
        Showln sTemp1
        Showln "Failed."
        Send Destroy of hoResp
        Procedure_Return
    End

    Send Destroy of hoResp

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

    Get ComStringOf Of hoJResp "selected" To sSelected
    Get ComStringOf Of hoJResp "global.headings.color" To sColor
    Get ComStringOf Of hoJResp "global.links.color" To sLinksColor
    Get ComStringOf Of hoJResp "global.menus.hoverOrFocus.value" To sValue
    Get ComStringOf Of hoJResp "global.menus.color.value" To sColorValue
    Get ComStringOf Of hoJResp "global.header.backgroundColor.value" To sBackgroundColorValue
    Get ComStringOf Of hoJResp "global.header.button.value" To sButtonValue
    Get ComStringOf Of hoJResp "global.header.primaryNavigation.value" To sPrimaryNavigationValue
    Get ComStringOf Of hoJResp "global.header.secondaryNavigation.value" To sSecondaryNavigationValue
    Get ComStringOf Of hoJResp "global.header.search.value" To sSearchValue
    Get ComStringOf Of hoJResp "global.content.screen.value" To sScreenValue
    Get ComStringOf Of hoJResp "global.content.container.value" To sContainerValue
    Get ComStringOf Of hoJResp "global.content.header.value" To sHeaderValue
    Get ComStringOf Of hoJResp "global.content.body.value" To sBodyValue
    Get ComStringOf Of hoJResp "global.bordersAndDividers.color" To sBordersAndDividersColor
    Get ComStringOf Of hoJResp "custom.headings.color" To sHeadingsColor
    Get ComStringOf Of hoJResp "custom.links.color" To sLinksColor
    Get ComStringOf Of hoJResp "custom.menus.hoverOrFocus.value" To sHoverOrFocusValue
    Get ComStringOf Of hoJResp "custom.menus.color.value" To sColorValue
    Get ComStringOf Of hoJResp "custom.header.backgroundColor.value" To sBackgroundColorValue
    Get ComStringOf Of hoJResp "custom.header.button.value" To sButtonValue
    Get ComStringOf Of hoJResp "custom.header.primaryNavigation.value" To sPrimaryNavigationValue
    Get ComStringOf Of hoJResp "custom.header.secondaryNavigation.value" To sSecondaryNavigationValue
    Get ComStringOf Of hoJResp "custom.header.search.value" To sSearchValue
    Get ComStringOf Of hoJResp "custom.content.screen.value" To sScreenValue
    Get ComStringOf Of hoJResp "custom.content.container.value" To sContainerValue
    Get ComStringOf Of hoJResp "custom.content.header.value" To sHeaderValue
    Get ComStringOf Of hoJResp "custom.content.body.value" To sBodyValue
    Get ComStringOf Of hoJResp "custom.bordersAndDividers.color" To sBordersAndDividersColor
    Get ComStringOf Of hoJResp "theme.headings.color" To sHeadingsColor
    Get ComStringOf Of hoJResp "theme.links.color" To sLinksColor
    Get ComStringOf Of hoJResp "theme.menus.hoverOrFocus.value" To sHoverOrFocusValue
    Get ComStringOf Of hoJResp "theme.menus.color.value" To sColorValue
    Get ComStringOf Of hoJResp "theme.header.backgroundColor.value" To sBackgroundColorValue
    Get ComStringOf Of hoJResp "theme.header.button.value" To sButtonValue
    Get ComStringOf Of hoJResp "theme.header.primaryNavigation.value" To sPrimaryNavigationValue
    Get ComStringOf Of hoJResp "theme.header.secondaryNavigation.value" To sSecondaryNavigationValue
    Get ComStringOf Of hoJResp "theme.header.search.value" To sSearchValue
    Get ComStringOf Of hoJResp "theme.content.screen.value" To sScreenValue
    Get ComStringOf Of hoJResp "theme.content.container.value" To sContainerValue
    Get ComStringOf Of hoJResp "theme.content.header.value" To sHeaderValue
    Get ComStringOf Of hoJResp "theme.content.body.value" To sBodyValue
    Get ComStringOf Of hoJResp "theme.bordersAndDividers.color" To sBordersAndDividersColor


End_Procedure

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": ""
    }
  ]
}