Chilkat Online Tools

DataFlex / Atlassian Confluence Cloud / Update space property

Back to Collection Items

Use ChilkatAx-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 sValue
    String sOperation
    String sTargetType
    String sV_expandableValue
    String sUserValue
    String sGroupValue
    String sOperation
    String sTargetType
    Boolean iAnonymousAccess
    Boolean iUnlicensedAccess
    Integer iId
    String sKey
    String sVersion
    String sSpace
    String sWhen
    String sMessage
    Integer iV_Number
    Boolean iMinorEdit
    Integer iId
    String sKey
    String sName
    String sV_Type
    String sStatus
    String sSettings
    String sMetadata
    String sOperations
    String sLookAndFeel
    String sPermissions
    String sIcon
    String sDescription
    String sTheme
    String sHistory
    String sHomepage
    String sPath
    Integer iWidth
    Integer iHeight
    Boolean iIsDefault
    String sValue
    String sRepresentation
    String sViewValue
    String sViewRepresentation
    String sHomepageValue
    Integer iStart
    Integer iLimit
    Integer iSize
    Boolean iRouteOverrideEnabled
    String sColor
    String sLinksColor
    String sHoverOrFocusValue
    String sColorValue
    String sBackgroundColorValue
    String sButtonValue
    String sPrimaryNavigationValue
    String sSecondaryNavigationValue
    String sSearchValue
    String sScreenValue
    String sContainerValue
    String sHeaderValue
    String sBodyValue
    String sBordersAndDividersColor
    String sCreatedDate
    Integer i
    Integer iCount_i
    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.

    // {
    //   "value": "<object>",
    //   "version": {
    //     "number": "<integer>",
    //     "minorEdit": true
    //   }
    // }

    Get Create (RefClass(cComChilkatJsonObject)) To hoJson
    If (Not(IsComObjectCreated(hoJson))) Begin
        Send CreateComObject of hoJson
    End
    Get ComUpdateString Of hoJson "value" "<object>" To iSuccess
    Get ComUpdateString Of hoJson "version.number" "<integer>" To iSuccess
    Get ComUpdateBool Of hoJson "version.minorEdit" True 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/space/:spaceKey/property/:key" 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)

    // {
    //   "id": -13429300,
    //   "key": "ut veniam dolor",
    //   "value": {},
    //   "_expandable": {
    //     "version": "cillum officia ipsum ut",
    //     "space": "in Lorem consectetur"
    //   },
    //   "version": {
    //     "when": "1951-11-29T18:04:27.736Z",
    //     "message": "dolore magna nisi incididunt",
    //     "number": -49820236,
    //     "minorEdit": true
    //   },
    //   "space": {
    //     "id": -20471082,
    //     "key": "in pr",
    //     "name": "culpa dolor si",
    //     "type": "irure dolor ea aliquip",
    //     "status": "sed ex",
    //     "_expandable": {
    //       "settings": "exercitation ea nisi Lorem",
    //       "metadata": "elit",
    //       "operations": "Lorem consequat aliquip",
    //       "lookAndFeel": "non occaecat nisi dolor",
    //       "permissions": "pariatur cupidatat dolor sed dolor",
    //       "icon": "aliquip",
    //       "description": "in",
    //       "theme": "qui",
    //       "history": "et fugiat culpa irure amet",
    //       "homepage": "commodo ut amet aute sint"
    //     },
    //     "_links": {},
    //     "icon": {
    //       "path": "laborum velit dolore",
    //       "width": -4680192,
    //       "height": 21898365,
    //       "isDefault": false
    //     },
    //     "description": {
    //       "plain": {
    //         "value": "sit deserunt",
    //         "representation": "plain",
    //         "embeddedContent": [
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         ]
    //       },
    //       "view": {
    //         "value": "commodo dolore do",
    //         "representation": "plain",
    //         "embeddedContent": [
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         ]
    //       }
    //     },
    //     "homepage": {
    //       "value": "<Circular reference to #/components/schemas/Content detected>"
    //     },
    //     "metadata": {
    //       "labels": {
    //         "results": [
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         ],
    //         "start": 4373903,
    //         "limit": -70310049,
    //         "size": -89717135,
    //         "_links": {}
    //       }
    //     },
    //     "operations": [
    //       {
    //         "operation": "update",
    //         "targetType": "space"
    //       },
    //       {
    //         "operation": "update",
    //         "targetType": "attachment"
    //       }
    //     ],
    //     "permissions": [
    //       {
    //         "subjects": {
    //           "_expandable": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           "user": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           "group": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         },
    //         "operation": {
    //           "operation": "restore",
    //           "targetType": "comment"
    //         },
    //         "anonymousAccess": false,
    //         "unlicensedAccess": false
    //       },
    //       {
    //         "subjects": {
    //           "_expandable": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           "user": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           "group": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         },
    //         "operation": {
    //           "operation": "export",
    //           "targetType": "attachment"
    //         },
    //         "anonymousAccess": false,
    //         "unlicensedAccess": false
    //       }
    //     ],
    //     "settings": {
    //       "routeOverrideEnabled": false,
    //       "_links": {}
    //     },
    //     "theme": {},
    //     "lookAndFeel": {
    //       "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>"
    //       }
    //     },
    //     "history": {
    //       "createdDate": "1978-05-15T09:31:11.737Z"
    //     }
    //   }
    // }

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

    Get ComIntOf Of hoJResp "id" To iId
    Get ComStringOf Of hoJResp "key" To sKey
    Get ComStringOf Of hoJResp "_expandable.version" To sVersion
    Get ComStringOf Of hoJResp "_expandable.space" To sSpace
    Get ComStringOf Of hoJResp "version.when" To sWhen
    Get ComStringOf Of hoJResp "version.message" To sMessage
    Get ComIntOf Of hoJResp "version.number" To iV_Number
    Get ComBoolOf Of hoJResp "version.minorEdit" To iMinorEdit
    Get ComIntOf Of hoJResp "space.id" To iId
    Get ComStringOf Of hoJResp "space.key" To sKey
    Get ComStringOf Of hoJResp "space.name" To sName
    Get ComStringOf Of hoJResp "space.type" To sV_Type
    Get ComStringOf Of hoJResp "space.status" To sStatus
    Get ComStringOf Of hoJResp "space._expandable.settings" To sSettings
    Get ComStringOf Of hoJResp "space._expandable.metadata" To sMetadata
    Get ComStringOf Of hoJResp "space._expandable.operations" To sOperations
    Get ComStringOf Of hoJResp "space._expandable.lookAndFeel" To sLookAndFeel
    Get ComStringOf Of hoJResp "space._expandable.permissions" To sPermissions
    Get ComStringOf Of hoJResp "space._expandable.icon" To sIcon
    Get ComStringOf Of hoJResp "space._expandable.description" To sDescription
    Get ComStringOf Of hoJResp "space._expandable.theme" To sTheme
    Get ComStringOf Of hoJResp "space._expandable.history" To sHistory
    Get ComStringOf Of hoJResp "space._expandable.homepage" To sHomepage
    Get ComStringOf Of hoJResp "space.icon.path" To sPath
    Get ComIntOf Of hoJResp "space.icon.width" To iWidth
    Get ComIntOf Of hoJResp "space.icon.height" To iHeight
    Get ComBoolOf Of hoJResp "space.icon.isDefault" To iIsDefault
    Get ComStringOf Of hoJResp "space.description.plain.value" To sValue
    Get ComStringOf Of hoJResp "space.description.plain.representation" To sRepresentation
    Get ComStringOf Of hoJResp "space.description.view.value" To sViewValue
    Get ComStringOf Of hoJResp "space.description.view.representation" To sViewRepresentation
    Get ComStringOf Of hoJResp "space.homepage.value" To sHomepageValue
    Get ComIntOf Of hoJResp "space.metadata.labels.start" To iStart
    Get ComIntOf Of hoJResp "space.metadata.labels.limit" To iLimit
    Get ComIntOf Of hoJResp "space.metadata.labels.size" To iSize
    Get ComBoolOf Of hoJResp "space.settings.routeOverrideEnabled" To iRouteOverrideEnabled
    Get ComStringOf Of hoJResp "space.lookAndFeel.headings.color" To sColor
    Get ComStringOf Of hoJResp "space.lookAndFeel.links.color" To sLinksColor
    Get ComStringOf Of hoJResp "space.lookAndFeel.menus.hoverOrFocus.value" To sHoverOrFocusValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.menus.color.value" To sColorValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.header.backgroundColor.value" To sBackgroundColorValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.header.button.value" To sButtonValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.header.primaryNavigation.value" To sPrimaryNavigationValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.header.secondaryNavigation.value" To sSecondaryNavigationValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.header.search.value" To sSearchValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.content.screen.value" To sScreenValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.content.container.value" To sContainerValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.content.header.value" To sHeaderValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.content.body.value" To sBodyValue
    Get ComStringOf Of hoJResp "space.lookAndFeel.bordersAndDividers.color" To sBordersAndDividersColor
    Get ComStringOf Of hoJResp "space.history.createdDate" To sCreatedDate
    Move 0 To i
    Get ComSizeOfArray Of hoJResp "space.description.plain.embeddedContent" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "space.description.plain.embeddedContent[i].value" To sValue
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "space.description.view.embeddedContent" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "space.description.view.embeddedContent[i].value" To sValue
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "space.metadata.labels.results" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "space.metadata.labels.results[i].value" To sValue
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "space.operations" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "space.operations[i].operation" To sOperation
        Get ComStringOf Of hoJResp "space.operations[i].targetType" To sTargetType
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "space.permissions" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "space.permissions[i].subjects._expandable.value" To sV_expandableValue
        Get ComStringOf Of hoJResp "space.permissions[i].subjects.user.value" To sUserValue
        Get ComStringOf Of hoJResp "space.permissions[i].subjects.group.value" To sGroupValue
        Get ComStringOf Of hoJResp "space.permissions[i].operation.operation" To sOperation
        Get ComStringOf Of hoJResp "space.permissions[i].operation.targetType" To sTargetType
        Get ComBoolOf Of hoJResp "space.permissions[i].anonymousAccess" To iAnonymousAccess
        Get ComBoolOf Of hoJResp "space.permissions[i].unlicensedAccess" To iUnlicensedAccess
        Move (i + 1) To i
    Loop



End_Procedure

Curl Command

curl -X PUT
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-d '{
    "value": "<object>",
    "version": {
        "number": "<integer>",
        "minorEdit": true
    }
}'
https://your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property/:key

Postman Collection Item JSON

{
  "name": "Update space property",
  "request": {
    "auth": {
      "type": "oauth2"
    },
    "method": "PUT",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"value\": \"<object>\",\n    \"version\": {\n        \"number\": \"<integer>\",\n        \"minorEdit\": true\n    }\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/api/space/:spaceKey/property/:key",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "space",
        ":spaceKey",
        "property",
        ":key"
      ],
      "variable": [
        {
          "key": "spaceKey",
          "value": "<string>",
          "type": "string",
          "description": "(Required) The key of the space that the property is in."
        },
        {
          "key": "key",
          "value": "<string>",
          "type": "string",
          "description": "(Required) The key of the property to be updated."
        }
      ]
    },
    "description": "Updates a space property. Note, you cannot update the key of a space\nproperty, only the value.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:\n‘Admin’ permission for the space."
  },
  "response": [
    {
      "name": "Returned if the space property is updated.",
      "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    \"value\": \"<object>\",\n    \"version\": {\n        \"number\": \"<integer>\",\n        \"minorEdit\": true\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/space/:spaceKey/property/:key",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "space",
            ":spaceKey",
            "property",
            ":key"
          ],
          "variable": [
            {
              "key": "spaceKey"
            },
            {
              "key": "key"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"id\": -13429300,\n \"key\": \"ut veniam dolor\",\n \"value\": {},\n \"_expandable\": {\n  \"version\": \"cillum officia ipsum ut\",\n  \"space\": \"in Lorem consectetur\"\n },\n \"version\": {\n  \"when\": \"1951-11-29T18:04:27.736Z\",\n  \"message\": \"dolore magna nisi incididunt\",\n  \"number\": -49820236,\n  \"minorEdit\": true\n },\n \"space\": {\n  \"id\": -20471082,\n  \"key\": \"in pr\",\n  \"name\": \"culpa dolor si\",\n  \"type\": \"irure dolor ea aliquip\",\n  \"status\": \"sed ex\",\n  \"_expandable\": {\n   \"settings\": \"exercitation ea nisi Lorem\",\n   \"metadata\": \"elit\",\n   \"operations\": \"Lorem consequat aliquip\",\n   \"lookAndFeel\": \"non occaecat nisi dolor\",\n   \"permissions\": \"pariatur cupidatat dolor sed dolor\",\n   \"icon\": \"aliquip\",\n   \"description\": \"in\",\n   \"theme\": \"qui\",\n   \"history\": \"et fugiat culpa irure amet\",\n   \"homepage\": \"commodo ut amet aute sint\"\n  },\n  \"_links\": {},\n  \"icon\": {\n   \"path\": \"laborum velit dolore\",\n   \"width\": -4680192,\n   \"height\": 21898365,\n   \"isDefault\": false\n  },\n  \"description\": {\n   \"plain\": {\n    \"value\": \"sit deserunt\",\n    \"representation\": \"plain\",\n    \"embeddedContent\": [\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    ]\n   },\n   \"view\": {\n    \"value\": \"commodo dolore do\",\n    \"representation\": \"plain\",\n    \"embeddedContent\": [\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    ]\n   }\n  },\n  \"homepage\": {\n   \"value\": \"<Circular reference to #/components/schemas/Content detected>\"\n  },\n  \"metadata\": {\n   \"labels\": {\n    \"results\": [\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    ],\n    \"start\": 4373903,\n    \"limit\": -70310049,\n    \"size\": -89717135,\n    \"_links\": {}\n   }\n  },\n  \"operations\": [\n   {\n    \"operation\": \"update\",\n    \"targetType\": \"space\"\n   },\n   {\n    \"operation\": \"update\",\n    \"targetType\": \"attachment\"\n   }\n  ],\n  \"permissions\": [\n   {\n    \"subjects\": {\n     \"_expandable\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"user\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"group\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    },\n    \"operation\": {\n     \"operation\": \"restore\",\n     \"targetType\": \"comment\"\n    },\n    \"anonymousAccess\": false,\n    \"unlicensedAccess\": false\n   },\n   {\n    \"subjects\": {\n     \"_expandable\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"user\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"group\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    },\n    \"operation\": {\n     \"operation\": \"export\",\n     \"targetType\": \"attachment\"\n    },\n    \"anonymousAccess\": false,\n    \"unlicensedAccess\": false\n   }\n  ],\n  \"settings\": {\n   \"routeOverrideEnabled\": false,\n   \"_links\": {}\n  },\n  \"theme\": {},\n  \"lookAndFeel\": {\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  \"history\": {\n   \"createdDate\": \"1978-05-15T09:31:11.737Z\"\n  }\n }\n}"
    },
    {
      "name": "Returned if any of the following is true:\n\n- The given property has a different spaceKey to the one in the path.\n- The property has a different key to the one in the path.",
      "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    \"value\": \"<object>\",\n    \"version\": {\n        \"number\": \"<integer>\",\n        \"minorEdit\": true\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/space/:spaceKey/property/:key",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "space",
            ":spaceKey",
            "property",
            ":key"
          ],
          "variable": [
            {
              "key": "spaceKey"
            },
            {
              "key": "key"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Returned if the user does not have permission to edit the space with\nthe 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    \"value\": \"<object>\",\n    \"version\": {\n        \"number\": \"<integer>\",\n        \"minorEdit\": true\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/space/:spaceKey/property/:key",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "space",
            ":spaceKey",
            "property",
            ":key"
          ],
          "variable": [
            {
              "key": "spaceKey"
            },
            {
              "key": "key"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Returned if any of the following is true:\n\n- There is no space with the given spaceKey\n- There is no property with the given key.\n- The calling user does not have permission to view the space.",
      "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    \"value\": \"<object>\",\n    \"version\": {\n        \"number\": \"<integer>\",\n        \"minorEdit\": true\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/space/:spaceKey/property/:key",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "space",
            ":spaceKey",
            "property",
            ":key"
          ],
          "variable": [
            {
              "key": "spaceKey"
            },
            {
              "key": "key"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Returned if the given version is does not match the expected target\nversion of the updated property",
      "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    \"value\": \"<object>\",\n    \"version\": {\n        \"number\": \"<integer>\",\n        \"minorEdit\": true\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/space/:spaceKey/property/:key",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "space",
            ":spaceKey",
            "property",
            ":key"
          ],
          "variable": [
            {
              "key": "spaceKey"
            },
            {
              "key": "key"
            }
          ]
        }
      },
      "status": "Conflict",
      "code": 409,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Returned if the value of the property is too long.",
      "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    \"value\": \"<object>\",\n    \"version\": {\n        \"number\": \"<integer>\",\n        \"minorEdit\": true\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/space/:spaceKey/property/:key",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "space",
            ":spaceKey",
            "property",
            ":key"
          ],
          "variable": [
            {
              "key": "spaceKey"
            },
            {
              "key": "key"
            }
          ]
        }
      },
      "status": "Request Entity Too Large",
      "code": 413,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}