Chilkat Online Tools

unicodeC / Atlassian Confluence Cloud / Create space property for key

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkHttpResponseW.h>
#include <C_CkStringBuilderW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkJsonObjectW json;
    HCkHttpResponseW resp;
    HCkStringBuilderW sbResponseBody;
    HCkJsonObjectW jResp;
    int respStatusCode;
    const wchar_t *value;
    const wchar_t *operation;
    const wchar_t *targetType;
    const wchar_t *v_expandableValue;
    const wchar_t *UserValue;
    const wchar_t *GroupValue;
    const wchar_t *Operation;
    const wchar_t *TargetType;
    BOOL anonymousAccess;
    BOOL unlicensedAccess;
    int id;
    const wchar_t *key;
    const wchar_t *Version;
    const wchar_t *Space;
    const wchar_t *When;
    const wchar_t *Message;
    int v_Number;
    BOOL MinorEdit;
    int Id;
    const wchar_t *Key;
    const wchar_t *Name;
    const wchar_t *v_Type;
    const wchar_t *Status;
    const wchar_t *Settings;
    const wchar_t *Metadata;
    const wchar_t *Operations;
    const wchar_t *LookAndFeel;
    const wchar_t *Permissions;
    const wchar_t *Icon;
    const wchar_t *Description;
    const wchar_t *Theme;
    const wchar_t *History;
    const wchar_t *Homepage;
    const wchar_t *Path;
    int Width;
    int Height;
    BOOL IsDefault;
    const wchar_t *Value;
    const wchar_t *Representation;
    const wchar_t *ViewValue;
    const wchar_t *ViewRepresentation;
    const wchar_t *HomepageValue;
    int Start;
    int Limit;
    int Size;
    BOOL RouteOverrideEnabled;
    const wchar_t *Color;
    const wchar_t *LinksColor;
    const wchar_t *HoverOrFocusValue;
    const wchar_t *ColorValue;
    const wchar_t *BackgroundColorValue;
    const wchar_t *ButtonValue;
    const wchar_t *PrimaryNavigationValue;
    const wchar_t *SecondaryNavigationValue;
    const wchar_t *SearchValue;
    const wchar_t *ScreenValue;
    const wchar_t *ContainerValue;
    const wchar_t *HeaderValue;
    const wchar_t *BodyValue;
    const wchar_t *BordersAndDividersColor;
    const wchar_t *CreatedDate;
    int i;
    int count_i;

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

    http = CkHttpW_Create();

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

    json = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"value",L"<object>");

    // Adds the "Authorization: Bearer <access_token>" header.
    CkHttpW_putAuthToken(http,L"<access_token>");
    CkHttpW_SetRequestHeader(http,L"Content-Type",L"application/json");

    resp = CkHttpW_PostJson3(http,L"https://your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property/:key",L"application/json",json);
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        return;
    }

    sbResponseBody = CkStringBuilderW_Create();
    CkHttpResponseW_GetBodySb(resp,sbResponseBody);

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);
    CkJsonObjectW_putEmitCompact(jResp,FALSE);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",CkJsonObjectW_emit(jResp));

    respStatusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkHttpResponseW_header(resp));
        wprintf(L"Failed.\n");
        CkHttpResponseW_Dispose(resp);
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonObjectW_Dispose(jResp);
        return;
    }

    CkHttpResponseW_Dispose(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

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    id = CkJsonObjectW_IntOf(jResp,L"id");
    key = CkJsonObjectW_stringOf(jResp,L"key");
    Version = CkJsonObjectW_stringOf(jResp,L"_expandable.version");
    Space = CkJsonObjectW_stringOf(jResp,L"_expandable.space");
    When = CkJsonObjectW_stringOf(jResp,L"version.when");
    Message = CkJsonObjectW_stringOf(jResp,L"version.message");
    v_Number = CkJsonObjectW_IntOf(jResp,L"version.number");
    MinorEdit = CkJsonObjectW_BoolOf(jResp,L"version.minorEdit");
    Id = CkJsonObjectW_IntOf(jResp,L"space.id");
    Key = CkJsonObjectW_stringOf(jResp,L"space.key");
    Name = CkJsonObjectW_stringOf(jResp,L"space.name");
    v_Type = CkJsonObjectW_stringOf(jResp,L"space.type");
    Status = CkJsonObjectW_stringOf(jResp,L"space.status");
    Settings = CkJsonObjectW_stringOf(jResp,L"space._expandable.settings");
    Metadata = CkJsonObjectW_stringOf(jResp,L"space._expandable.metadata");
    Operations = CkJsonObjectW_stringOf(jResp,L"space._expandable.operations");
    LookAndFeel = CkJsonObjectW_stringOf(jResp,L"space._expandable.lookAndFeel");
    Permissions = CkJsonObjectW_stringOf(jResp,L"space._expandable.permissions");
    Icon = CkJsonObjectW_stringOf(jResp,L"space._expandable.icon");
    Description = CkJsonObjectW_stringOf(jResp,L"space._expandable.description");
    Theme = CkJsonObjectW_stringOf(jResp,L"space._expandable.theme");
    History = CkJsonObjectW_stringOf(jResp,L"space._expandable.history");
    Homepage = CkJsonObjectW_stringOf(jResp,L"space._expandable.homepage");
    Path = CkJsonObjectW_stringOf(jResp,L"space.icon.path");
    Width = CkJsonObjectW_IntOf(jResp,L"space.icon.width");
    Height = CkJsonObjectW_IntOf(jResp,L"space.icon.height");
    IsDefault = CkJsonObjectW_BoolOf(jResp,L"space.icon.isDefault");
    Value = CkJsonObjectW_stringOf(jResp,L"space.description.plain.value");
    Representation = CkJsonObjectW_stringOf(jResp,L"space.description.plain.representation");
    ViewValue = CkJsonObjectW_stringOf(jResp,L"space.description.view.value");
    ViewRepresentation = CkJsonObjectW_stringOf(jResp,L"space.description.view.representation");
    HomepageValue = CkJsonObjectW_stringOf(jResp,L"space.homepage.value");
    Start = CkJsonObjectW_IntOf(jResp,L"space.metadata.labels.start");
    Limit = CkJsonObjectW_IntOf(jResp,L"space.metadata.labels.limit");
    Size = CkJsonObjectW_IntOf(jResp,L"space.metadata.labels.size");
    RouteOverrideEnabled = CkJsonObjectW_BoolOf(jResp,L"space.settings.routeOverrideEnabled");
    Color = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.headings.color");
    LinksColor = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.links.color");
    HoverOrFocusValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.menus.hoverOrFocus.value");
    ColorValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.menus.color.value");
    BackgroundColorValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.header.backgroundColor.value");
    ButtonValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.header.button.value");
    PrimaryNavigationValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.header.primaryNavigation.value");
    SecondaryNavigationValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.header.secondaryNavigation.value");
    SearchValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.header.search.value");
    ScreenValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.content.screen.value");
    ContainerValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.content.container.value");
    HeaderValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.content.header.value");
    BodyValue = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.content.body.value");
    BordersAndDividersColor = CkJsonObjectW_stringOf(jResp,L"space.lookAndFeel.bordersAndDividers.color");
    CreatedDate = CkJsonObjectW_stringOf(jResp,L"space.history.createdDate");
    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"space.description.plain.embeddedContent");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        value = CkJsonObjectW_stringOf(jResp,L"space.description.plain.embeddedContent[i].value");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"space.description.view.embeddedContent");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        value = CkJsonObjectW_stringOf(jResp,L"space.description.view.embeddedContent[i].value");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"space.metadata.labels.results");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        value = CkJsonObjectW_stringOf(jResp,L"space.metadata.labels.results[i].value");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"space.operations");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        operation = CkJsonObjectW_stringOf(jResp,L"space.operations[i].operation");
        targetType = CkJsonObjectW_stringOf(jResp,L"space.operations[i].targetType");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"space.permissions");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        v_expandableValue = CkJsonObjectW_stringOf(jResp,L"space.permissions[i].subjects._expandable.value");
        UserValue = CkJsonObjectW_stringOf(jResp,L"space.permissions[i].subjects.user.value");
        GroupValue = CkJsonObjectW_stringOf(jResp,L"space.permissions[i].subjects.group.value");
        Operation = CkJsonObjectW_stringOf(jResp,L"space.permissions[i].operation.operation");
        TargetType = CkJsonObjectW_stringOf(jResp,L"space.permissions[i].operation.targetType");
        anonymousAccess = CkJsonObjectW_BoolOf(jResp,L"space.permissions[i].anonymousAccess");
        unlicensedAccess = CkJsonObjectW_BoolOf(jResp,L"space.permissions[i].unlicensedAccess");
        i = i + 1;
    }



    CkHttpW_Dispose(http);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(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": ""
    }
  ]
}