Chilkat Online Tools

PowerBuilder / Atlassian Confluence Cloud / Create space property for key

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Json
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Value
string ls_Operation
string ls_TargetType
string ls_V_expandableValue
string ls_UserValue
string ls_GroupValue
string ls_Operation
string ls_TargetType
integer li_AnonymousAccess
integer li_UnlicensedAccess
integer li_Id
string ls_Key
string ls_Version
string ls_Space
string ls_When
string ls_Message
integer li_V_Number
integer li_MinorEdit
integer li_Id
string ls_Key
string ls_Name
string ls_V_Type
string ls_Status
string ls_Settings
string ls_Metadata
string ls_Operations
string ls_LookAndFeel
string ls_Permissions
string ls_Icon
string ls_Description
string ls_Theme
string ls_History
string ls_Homepage
string ls_Path
integer li_Width
integer li_Height
integer li_IsDefault
string ls_Value
string ls_Representation
string ls_ViewValue
string ls_ViewRepresentation
string ls_HomepageValue
integer li_Start
integer li_Limit
integer li_Size
integer li_RouteOverrideEnabled
string ls_Color
string ls_LinksColor
string ls_HoverOrFocusValue
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_CreatedDate
integer i
integer li_Count_i

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

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.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.

// {
//   "value": "<object>"
// }

loo_Json = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_Json.ConnectToNewObject("Chilkat.JsonObject")

loo_Json.UpdateString("value","<object>")

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

loo_Resp = loo_Http.PostJson3("https://your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property/:key","application/json",loo_Json)
if loo_Http.LastMethodSuccess = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_Json
    return
end if

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

loo_Resp.GetBodySb(loo_SbResponseBody)

loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.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_SbResponseBody
    destroy loo_JResp
    return
end if

destroy loo_Resp

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

li_Id = loo_JResp.IntOf("id")
ls_Key = loo_JResp.StringOf("key")
ls_Version = loo_JResp.StringOf("_expandable.version")
ls_Space = loo_JResp.StringOf("_expandable.space")
ls_When = loo_JResp.StringOf("version.when")
ls_Message = loo_JResp.StringOf("version.message")
li_V_Number = loo_JResp.IntOf("version.number")
li_MinorEdit = loo_JResp.BoolOf("version.minorEdit")
li_Id = loo_JResp.IntOf("space.id")
ls_Key = loo_JResp.StringOf("space.key")
ls_Name = loo_JResp.StringOf("space.name")
ls_V_Type = loo_JResp.StringOf("space.type")
ls_Status = loo_JResp.StringOf("space.status")
ls_Settings = loo_JResp.StringOf("space._expandable.settings")
ls_Metadata = loo_JResp.StringOf("space._expandable.metadata")
ls_Operations = loo_JResp.StringOf("space._expandable.operations")
ls_LookAndFeel = loo_JResp.StringOf("space._expandable.lookAndFeel")
ls_Permissions = loo_JResp.StringOf("space._expandable.permissions")
ls_Icon = loo_JResp.StringOf("space._expandable.icon")
ls_Description = loo_JResp.StringOf("space._expandable.description")
ls_Theme = loo_JResp.StringOf("space._expandable.theme")
ls_History = loo_JResp.StringOf("space._expandable.history")
ls_Homepage = loo_JResp.StringOf("space._expandable.homepage")
ls_Path = loo_JResp.StringOf("space.icon.path")
li_Width = loo_JResp.IntOf("space.icon.width")
li_Height = loo_JResp.IntOf("space.icon.height")
li_IsDefault = loo_JResp.BoolOf("space.icon.isDefault")
ls_Value = loo_JResp.StringOf("space.description.plain.value")
ls_Representation = loo_JResp.StringOf("space.description.plain.representation")
ls_ViewValue = loo_JResp.StringOf("space.description.view.value")
ls_ViewRepresentation = loo_JResp.StringOf("space.description.view.representation")
ls_HomepageValue = loo_JResp.StringOf("space.homepage.value")
li_Start = loo_JResp.IntOf("space.metadata.labels.start")
li_Limit = loo_JResp.IntOf("space.metadata.labels.limit")
li_Size = loo_JResp.IntOf("space.metadata.labels.size")
li_RouteOverrideEnabled = loo_JResp.BoolOf("space.settings.routeOverrideEnabled")
ls_Color = loo_JResp.StringOf("space.lookAndFeel.headings.color")
ls_LinksColor = loo_JResp.StringOf("space.lookAndFeel.links.color")
ls_HoverOrFocusValue = loo_JResp.StringOf("space.lookAndFeel.menus.hoverOrFocus.value")
ls_ColorValue = loo_JResp.StringOf("space.lookAndFeel.menus.color.value")
ls_BackgroundColorValue = loo_JResp.StringOf("space.lookAndFeel.header.backgroundColor.value")
ls_ButtonValue = loo_JResp.StringOf("space.lookAndFeel.header.button.value")
ls_PrimaryNavigationValue = loo_JResp.StringOf("space.lookAndFeel.header.primaryNavigation.value")
ls_SecondaryNavigationValue = loo_JResp.StringOf("space.lookAndFeel.header.secondaryNavigation.value")
ls_SearchValue = loo_JResp.StringOf("space.lookAndFeel.header.search.value")
ls_ScreenValue = loo_JResp.StringOf("space.lookAndFeel.content.screen.value")
ls_ContainerValue = loo_JResp.StringOf("space.lookAndFeel.content.container.value")
ls_HeaderValue = loo_JResp.StringOf("space.lookAndFeel.content.header.value")
ls_BodyValue = loo_JResp.StringOf("space.lookAndFeel.content.body.value")
ls_BordersAndDividersColor = loo_JResp.StringOf("space.lookAndFeel.bordersAndDividers.color")
ls_CreatedDate = loo_JResp.StringOf("space.history.createdDate")
i = 0
li_Count_i = loo_JResp.SizeOfArray("space.description.plain.embeddedContent")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Value = loo_JResp.StringOf("space.description.plain.embeddedContent[i].value")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("space.description.view.embeddedContent")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Value = loo_JResp.StringOf("space.description.view.embeddedContent[i].value")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("space.metadata.labels.results")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Value = loo_JResp.StringOf("space.metadata.labels.results[i].value")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("space.operations")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Operation = loo_JResp.StringOf("space.operations[i].operation")
    ls_TargetType = loo_JResp.StringOf("space.operations[i].targetType")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("space.permissions")
do while i < li_Count_i
    loo_JResp.I = i
    ls_V_expandableValue = loo_JResp.StringOf("space.permissions[i].subjects._expandable.value")
    ls_UserValue = loo_JResp.StringOf("space.permissions[i].subjects.user.value")
    ls_GroupValue = loo_JResp.StringOf("space.permissions[i].subjects.group.value")
    ls_Operation = loo_JResp.StringOf("space.permissions[i].operation.operation")
    ls_TargetType = loo_JResp.StringOf("space.permissions[i].operation.targetType")
    li_AnonymousAccess = loo_JResp.BoolOf("space.permissions[i].anonymousAccess")
    li_UnlicensedAccess = loo_JResp.BoolOf("space.permissions[i].unlicensedAccess")
    i = i + 1
loop


destroy loo_Http
destroy loo_Json
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

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

Postman Collection Item JSON

{
  "name": "Create space property for key",
  "request": {
    "auth": {
      "type": "oauth2"
    },
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"value\": \"<object>\"\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 will be created in."
        },
        {
          "key": "key",
          "value": "<string>",
          "type": "string",
          "description": "(Required) The key of the property to be created."
        }
      ]
    },
    "description": "Creates a new space property. This is the same as `POST\n/api/space/{spaceKey}/property` but the key for the property is passed as a\npath parameter, rather than in the request body.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:\n‘Admin’ permission for the space."
  },
  "response": [
    {
      "name": "Returned if the space property is created.",
      "originalRequest": {
        "method": "POST",
        "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}"
        },
        "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 space already has a value with the given key.\n- No property value was provided.",
      "originalRequest": {
        "method": "POST",
        "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}"
        },
        "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 the 'Admin' permission for the\nspace.",
      "originalRequest": {
        "method": "POST",
        "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}"
        },
        "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 the value for the property is too long.",
      "originalRequest": {
        "method": "POST",
        "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}"
        },
        "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": ""
    }
  ]
}