Chilkat Online Tools

SQL Server / Atlassian Confluence Cloud / Get content versions

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    DECLARE @queryParams int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @queryParams OUT

    EXEC sp_OAMethod @queryParams, 'UpdateInt', @success OUT, 'start', 0
    EXEC sp_OAMethod @queryParams, 'UpdateInt', @success OUT, 'limit', 200
    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'expand', '<string>'
    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'expand', '<string>'

    -- Adds the "Authorization: Bearer <access_token>" header.
    EXEC sp_OASetProperty @http, 'AuthToken', '<access_token>'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'QuickRequestParams', @resp OUT, 'GET', 'https://your-domain.atlassian.net/wiki/rest/api/content/:id/version', @queryParams
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @queryParams
        RETURN
      END

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @queryParams
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- {
    --   "results": [
    --     {
    --       "by": {
    --         "type": "known",
    --         "accountId": "nostrud",
    --         "accountType": "atlassian",
    --         "email": "anim elit esse ut",
    --         "publicName": "ullamco",
    --         "profilePicture": {
    --           "path": "p",
    --           "width": -77872476,
    --           "height": 61065658,
    --           "isDefault": false
    --         },
    --         "displayName": "eu",
    --         "_expandable": {
    --           "operations": "Excepteur",
    --           "details": "consequat irure nostrud Lorem",
    --           "personalSpace": "aute ullamco mollit"
    --         },
    --         "_links": {},
    --         "username": "nulla laborum",
    --         "userKey": "elit",
    --         "operations": [
    --           {
    --             "operation": "restore",
    --             "targetType": "blogpost"
    --           },
    --           {
    --             "operation": "copy",
    --             "targetType": "attachment"
    --           }
    --         ],
    --         "details": {
    --           "business": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "personal": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         },
    --         "personalSpace": {
    --           "id": -97629470,
    --           "key": "labore exercitation nulla ex",
    --           "name": "Duis consectetur anim",
    --           "type": "laborum reprehenderit laboris Ut",
    --           "status": "laboris sit mollit nulla",
    --           "_expandable": {
    --             "settings": "nisi sit",
    --             "metadata": "qui do",
    --             "operations": "v",
    --             "lookAndFeel": "esse irure aliquip amet dolor",
    --             "permissions": "cillum mollit",
    --             "icon": "proident aliquip",
    --             "description": "voluptate enim",
    --             "theme": "voluptate",
    --             "history": "ea tempor",
    --             "homepage": "esse sed Lorem"
    --           },
    --           "_links": {},
    --           "icon": {
    --             "path": "nostrud enim mollit voluptate dolor",
    --             "width": 30074773,
    --             "height": 56410680,
    --             "isDefault": true
    --           },
    --           "description": {
    --             "plain": {
    --               "value": "nostrud in tempor",
    --               "representation": "view",
    --               "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": "exercitation Ut",
    --               "representation": "view",
    --               "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": 2894494,
    --               "limit": 84285993,
    --               "size": -38756606,
    --               "_links": {}
    --             }
    --           },
    --           "operations": [
    --             {
    --               "operation": "delete",
    --               "targetType": "comment"
    --             },
    --             {
    --               "operation": "purge_version",
    --               "targetType": "space"
    --             }
    --           ],
    --           "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": "update",
    --                 "targetType": "blogpost"
    --               },
    --               "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": "create",
    --                 "targetType": "application"
    --               },
    --               "anonymousAccess": false,
    --               "unlicensedAccess": false
    --             }
    --           ],
    --           "settings": {
    --             "routeOverrideEnabled": false,
    --             "_links": {}
    --           },
    --           "theme": {},
    --           "lookAndFeel": {
    --             "headings": {
    --               "color": "cillum reprehenderit eu sunt"
    --             },
    --             "links": {
    --               "color": "culpa qui"
    --             },
    --             "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": "sed"
    --             }
    --           },
    --           "history": {
    --             "createdDate": "1952-06-10T14:31:50.998Z"
    --           }
    --         }
    --       },
    --       "when": "1953-06-13T02:44:53.322Z",
    --       "friendlyWhen": "magna culpa consectetur et",
    --       "message": "esse quis id",
    --       "number": 323605,
    --       "minorEdit": true,
    --       "_expandable": {
    --         "content": "esse ",
    --         "collaborators": "non Excepteur"
    --       },
    --       "_links": {},
    --       "content": {
    --         "value": "<Circular reference to #/components/schemas/Content detected>"
    --       },
    --       "collaborators": {
    --         "users": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "userKeys": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "_links": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         }
    --       }
    --     },
    --     {
    --       "by": {
    --         "type": "unknown",
    --         "accountId": "Duis fugiat cupidatat",
    --         "accountType": "atlassian",
    --         "email": "ea in quis anim",
    --         "publicName": "ullamco Lorem in",
    --         "profilePicture": {
    --           "path": "est sit",
    --           "width": -36330137,
    --           "height": -12646253,
    --           "isDefault": true
    --         },
    --         "displayName": "deserunt a",
    --         "_expandable": {
    --           "operations": "velit in quis ipsum",
    --           "details": "magna ea",
    --           "personalSpace": "Excepteur eu est"
    --         },
    --         "_links": {},
    --         "username": "eiusmod in cupidatat",
    --         "userKey": "esse",
    --         "operations": [
    --           {
    --             "operation": "create",
    --             "targetType": "blogpost"
    --           },
    --           {
    --             "operation": "create",
    --             "targetType": "blogpost"
    --           }
    --         ],
    --         "details": {
    --           "business": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "personal": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         },
    --         "personalSpace": {
    --           "id": 47490726,
    --           "key": "velit ",
    --           "name": "nulla aliqua",
    --           "type": "ea laboris",
    --           "status": "cillum adipisicing ullamco laboris",
    --           "_expandable": {
    --             "settings": "proident ex",
    --             "metadata": "quis irure dol",
    --             "operations": "nostrud eiusmod nisi",
    --             "lookAndFeel": "exercitation sunt labore non",
    --             "permissions": "eiusmod in ad fugiat",
    --             "icon": "nisi nostrud",
    --             "description": "adipisicing in voluptate",
    --             "theme": "ad dolore Duis sunt",
    --             "history": "u",
    --             "homepage": "nul"
    --           },
    --           "_links": {},
    --           "icon": {
    --             "path": "cillum sit eu",
    --             "width": -34925021,
    --             "height": 90425798,
    --             "isDefault": false
    --           },
    --           "description": {
    --             "plain": {
    --               "value": "quis sunt",
    --               "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": "sit id",
    --               "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": 83779927,
    --               "limit": -87535719,
    --               "size": -65924145,
    --               "_links": {}
    --             }
    --           },
    --           "operations": [
    --             {
    --               "operation": "purge_version",
    --               "targetType": "attachment"
    --             },
    --             {
    --               "operation": "move",
    --               "targetType": "application"
    --             }
    --           ],
    --           "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": "export",
    --                 "targetType": "attachment"
    --               },
    --               "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": "use",
    --                 "targetType": "page"
    --               },
    --               "anonymousAccess": false,
    --               "unlicensedAccess": false
    --             }
    --           ],
    --           "settings": {
    --             "routeOverrideEnabled": false,
    --             "_links": {}
    --           },
    --           "theme": {},
    --           "lookAndFeel": {
    --             "headings": {
    --               "color": "veniam"
    --             },
    --             "links": {
    --               "color": "nisi"
    --             },
    --             "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": "tempor laboris proident esse do"
    --             }
    --           },
    --           "history": {
    --             "createdDate": "2007-04-13T10:59:32.679Z"
    --           }
    --         }
    --       },
    --       "when": "1989-05-19T00:33:37.730Z",
    --       "friendlyWhen": "irure ut",
    --       "message": "adipisicing id ad sunt sint",
    --       "number": 74656274,
    --       "minorEdit": false,
    --       "_expandable": {
    --         "content": "des",
    --         "collaborators": "eu"
    --       },
    --       "_links": {},
    --       "content": {
    --         "value": "<Circular reference to #/components/schemas/Content detected>"
    --       },
    --       "collaborators": {
    --         "users": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "userKeys": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "_links": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         }
    --       }
    --     }
    --   ],
    --   "start": 56422235,
    --   "limit": -9071484,
    --   "size": 19664442,
    --   "_links": {}
    -- }

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

    DECLARE @v_Type nvarchar(4000)

    DECLARE @AccountId nvarchar(4000)

    DECLARE @AccountType nvarchar(4000)

    DECLARE @v_Email nvarchar(4000)

    DECLARE @PublicName nvarchar(4000)

    DECLARE @Path nvarchar(4000)

    DECLARE @Width int

    DECLARE @Height int

    DECLARE @IsDefault int

    DECLARE @DisplayName nvarchar(4000)

    DECLARE @Operations nvarchar(4000)

    DECLARE @Details nvarchar(4000)

    DECLARE @PersonalSpace nvarchar(4000)

    DECLARE @Username nvarchar(4000)

    DECLARE @UserKey nvarchar(4000)

    DECLARE @Value nvarchar(4000)

    DECLARE @PersonalValue nvarchar(4000)

    DECLARE @Id int

    DECLARE @Key nvarchar(4000)

    DECLARE @Name nvarchar(4000)

    DECLARE @PersonalSpaceType nvarchar(4000)

    DECLARE @Status nvarchar(4000)

    DECLARE @Settings nvarchar(4000)

    DECLARE @Metadata nvarchar(4000)

    DECLARE @v_expandableOperations nvarchar(4000)

    DECLARE @LookAndFeel nvarchar(4000)

    DECLARE @Permissions nvarchar(4000)

    DECLARE @Icon nvarchar(4000)

    DECLARE @Description nvarchar(4000)

    DECLARE @Theme nvarchar(4000)

    DECLARE @History nvarchar(4000)

    DECLARE @Homepage nvarchar(4000)

    DECLARE @IconPath nvarchar(4000)

    DECLARE @IconWidth int

    DECLARE @IconHeight int

    DECLARE @IconIsDefault int

    DECLARE @PlainValue nvarchar(4000)

    DECLARE @Representation nvarchar(4000)

    DECLARE @ViewValue nvarchar(4000)

    DECLARE @ViewRepresentation nvarchar(4000)

    DECLARE @HomepageValue nvarchar(4000)

    DECLARE @Start int

    DECLARE @Limit int

    DECLARE @Size int

    DECLARE @RouteOverrideEnabled int

    DECLARE @Color nvarchar(4000)

    DECLARE @LinksColor nvarchar(4000)

    DECLARE @HoverOrFocusValue nvarchar(4000)

    DECLARE @ColorValue nvarchar(4000)

    DECLARE @BackgroundColorValue nvarchar(4000)

    DECLARE @ButtonValue nvarchar(4000)

    DECLARE @PrimaryNavigationValue nvarchar(4000)

    DECLARE @SecondaryNavigationValue nvarchar(4000)

    DECLARE @SearchValue nvarchar(4000)

    DECLARE @ScreenValue nvarchar(4000)

    DECLARE @ContainerValue nvarchar(4000)

    DECLARE @HeaderValue nvarchar(4000)

    DECLARE @BodyValue nvarchar(4000)

    DECLARE @BordersAndDividersColor nvarchar(4000)

    DECLARE @CreatedDate nvarchar(4000)

    DECLARE @when nvarchar(4000)

    DECLARE @friendlyWhen nvarchar(4000)

    DECLARE @message nvarchar(4000)

    DECLARE @v_number int

    DECLARE @minorEdit int

    DECLARE @Content nvarchar(4000)

    DECLARE @Collaborators nvarchar(4000)

    DECLARE @contentValue nvarchar(4000)

    DECLARE @UsersValue nvarchar(4000)

    DECLARE @UserKeysValue nvarchar(4000)

    DECLARE @v_linksValue nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @operation nvarchar(4000)

    DECLARE @targetType nvarchar(4000)

    DECLARE @value nvarchar(4000)

    DECLARE @v_expandableValue nvarchar(4000)

    DECLARE @UserValue nvarchar(4000)

    DECLARE @GroupValue nvarchar(4000)

    DECLARE @Operation nvarchar(4000)

    DECLARE @TargetType nvarchar(4000)

    DECLARE @anonymousAccess int

    DECLARE @unlicensedAccess int

    DECLARE @start int
    EXEC sp_OAMethod @jResp, 'IntOf', @start OUT, 'start'
    DECLARE @limit int
    EXEC sp_OAMethod @jResp, 'IntOf', @limit OUT, 'limit'
    DECLARE @size int
    EXEC sp_OAMethod @jResp, 'IntOf', @size OUT, 'size'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'results'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'results[i].by.type'
        EXEC sp_OAMethod @jResp, 'StringOf', @AccountId OUT, 'results[i].by.accountId'
        EXEC sp_OAMethod @jResp, 'StringOf', @AccountType OUT, 'results[i].by.accountType'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_Email OUT, 'results[i].by.email'
        EXEC sp_OAMethod @jResp, 'StringOf', @PublicName OUT, 'results[i].by.publicName'
        EXEC sp_OAMethod @jResp, 'StringOf', @Path OUT, 'results[i].by.profilePicture.path'
        EXEC sp_OAMethod @jResp, 'IntOf', @Width OUT, 'results[i].by.profilePicture.width'
        EXEC sp_OAMethod @jResp, 'IntOf', @Height OUT, 'results[i].by.profilePicture.height'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsDefault OUT, 'results[i].by.profilePicture.isDefault'
        EXEC sp_OAMethod @jResp, 'StringOf', @DisplayName OUT, 'results[i].by.displayName'
        EXEC sp_OAMethod @jResp, 'StringOf', @Operations OUT, 'results[i].by._expandable.operations'
        EXEC sp_OAMethod @jResp, 'StringOf', @Details OUT, 'results[i].by._expandable.details'
        EXEC sp_OAMethod @jResp, 'StringOf', @PersonalSpace OUT, 'results[i].by._expandable.personalSpace'
        EXEC sp_OAMethod @jResp, 'StringOf', @Username OUT, 'results[i].by.username'
        EXEC sp_OAMethod @jResp, 'StringOf', @UserKey OUT, 'results[i].by.userKey'
        EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'results[i].by.details.business.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @PersonalValue OUT, 'results[i].by.details.personal.value'
        EXEC sp_OAMethod @jResp, 'IntOf', @Id OUT, 'results[i].by.personalSpace.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @Key OUT, 'results[i].by.personalSpace.key'
        EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'results[i].by.personalSpace.name'
        EXEC sp_OAMethod @jResp, 'StringOf', @PersonalSpaceType OUT, 'results[i].by.personalSpace.type'
        EXEC sp_OAMethod @jResp, 'StringOf', @Status OUT, 'results[i].by.personalSpace.status'
        EXEC sp_OAMethod @jResp, 'StringOf', @Settings OUT, 'results[i].by.personalSpace._expandable.settings'
        EXEC sp_OAMethod @jResp, 'StringOf', @Metadata OUT, 'results[i].by.personalSpace._expandable.metadata'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_expandableOperations OUT, 'results[i].by.personalSpace._expandable.operations'
        EXEC sp_OAMethod @jResp, 'StringOf', @LookAndFeel OUT, 'results[i].by.personalSpace._expandable.lookAndFeel'
        EXEC sp_OAMethod @jResp, 'StringOf', @Permissions OUT, 'results[i].by.personalSpace._expandable.permissions'
        EXEC sp_OAMethod @jResp, 'StringOf', @Icon OUT, 'results[i].by.personalSpace._expandable.icon'
        EXEC sp_OAMethod @jResp, 'StringOf', @Description OUT, 'results[i].by.personalSpace._expandable.description'
        EXEC sp_OAMethod @jResp, 'StringOf', @Theme OUT, 'results[i].by.personalSpace._expandable.theme'
        EXEC sp_OAMethod @jResp, 'StringOf', @History OUT, 'results[i].by.personalSpace._expandable.history'
        EXEC sp_OAMethod @jResp, 'StringOf', @Homepage OUT, 'results[i].by.personalSpace._expandable.homepage'
        EXEC sp_OAMethod @jResp, 'StringOf', @IconPath OUT, 'results[i].by.personalSpace.icon.path'
        EXEC sp_OAMethod @jResp, 'IntOf', @IconWidth OUT, 'results[i].by.personalSpace.icon.width'
        EXEC sp_OAMethod @jResp, 'IntOf', @IconHeight OUT, 'results[i].by.personalSpace.icon.height'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IconIsDefault OUT, 'results[i].by.personalSpace.icon.isDefault'
        EXEC sp_OAMethod @jResp, 'StringOf', @PlainValue OUT, 'results[i].by.personalSpace.description.plain.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Representation OUT, 'results[i].by.personalSpace.description.plain.representation'
        EXEC sp_OAMethod @jResp, 'StringOf', @ViewValue OUT, 'results[i].by.personalSpace.description.view.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @ViewRepresentation OUT, 'results[i].by.personalSpace.description.view.representation'
        EXEC sp_OAMethod @jResp, 'StringOf', @HomepageValue OUT, 'results[i].by.personalSpace.homepage.value'
        EXEC sp_OAMethod @jResp, 'IntOf', @Start OUT, 'results[i].by.personalSpace.metadata.labels.start'
        EXEC sp_OAMethod @jResp, 'IntOf', @Limit OUT, 'results[i].by.personalSpace.metadata.labels.limit'
        EXEC sp_OAMethod @jResp, 'IntOf', @Size OUT, 'results[i].by.personalSpace.metadata.labels.size'
        EXEC sp_OAMethod @jResp, 'BoolOf', @RouteOverrideEnabled OUT, 'results[i].by.personalSpace.settings.routeOverrideEnabled'
        EXEC sp_OAMethod @jResp, 'StringOf', @Color OUT, 'results[i].by.personalSpace.lookAndFeel.headings.color'
        EXEC sp_OAMethod @jResp, 'StringOf', @LinksColor OUT, 'results[i].by.personalSpace.lookAndFeel.links.color'
        EXEC sp_OAMethod @jResp, 'StringOf', @HoverOrFocusValue OUT, 'results[i].by.personalSpace.lookAndFeel.menus.hoverOrFocus.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @ColorValue OUT, 'results[i].by.personalSpace.lookAndFeel.menus.color.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @BackgroundColorValue OUT, 'results[i].by.personalSpace.lookAndFeel.header.backgroundColor.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @ButtonValue OUT, 'results[i].by.personalSpace.lookAndFeel.header.button.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @PrimaryNavigationValue OUT, 'results[i].by.personalSpace.lookAndFeel.header.primaryNavigation.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @SecondaryNavigationValue OUT, 'results[i].by.personalSpace.lookAndFeel.header.secondaryNavigation.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @SearchValue OUT, 'results[i].by.personalSpace.lookAndFeel.header.search.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @ScreenValue OUT, 'results[i].by.personalSpace.lookAndFeel.content.screen.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @ContainerValue OUT, 'results[i].by.personalSpace.lookAndFeel.content.container.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @HeaderValue OUT, 'results[i].by.personalSpace.lookAndFeel.content.header.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @BodyValue OUT, 'results[i].by.personalSpace.lookAndFeel.content.body.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @BordersAndDividersColor OUT, 'results[i].by.personalSpace.lookAndFeel.bordersAndDividers.color'
        EXEC sp_OAMethod @jResp, 'StringOf', @CreatedDate OUT, 'results[i].by.personalSpace.history.createdDate'
        EXEC sp_OAMethod @jResp, 'StringOf', @when OUT, 'results[i].when'
        EXEC sp_OAMethod @jResp, 'StringOf', @friendlyWhen OUT, 'results[i].friendlyWhen'
        EXEC sp_OAMethod @jResp, 'StringOf', @message OUT, 'results[i].message'
        EXEC sp_OAMethod @jResp, 'IntOf', @v_number OUT, 'results[i].number'
        EXEC sp_OAMethod @jResp, 'BoolOf', @minorEdit OUT, 'results[i].minorEdit'
        EXEC sp_OAMethod @jResp, 'StringOf', @Content OUT, 'results[i]._expandable.content'
        EXEC sp_OAMethod @jResp, 'StringOf', @Collaborators OUT, 'results[i]._expandable.collaborators'
        EXEC sp_OAMethod @jResp, 'StringOf', @contentValue OUT, 'results[i].content.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @UsersValue OUT, 'results[i].collaborators.users.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @UserKeysValue OUT, 'results[i].collaborators.userKeys.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_linksValue OUT, 'results[i].collaborators._links.value'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].by.operations'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @operation OUT, 'results[i].by.operations[j].operation'
            EXEC sp_OAMethod @jResp, 'StringOf', @targetType OUT, 'results[i].by.operations[j].targetType'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].by.personalSpace.description.plain.embeddedContent'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'results[i].by.personalSpace.description.plain.embeddedContent[j].value'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].by.personalSpace.description.view.embeddedContent'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'results[i].by.personalSpace.description.view.embeddedContent[j].value'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].by.personalSpace.metadata.labels.results'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'results[i].by.personalSpace.metadata.labels.results[j].value'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].by.personalSpace.operations'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @operation OUT, 'results[i].by.personalSpace.operations[j].operation'
            EXEC sp_OAMethod @jResp, 'StringOf', @targetType OUT, 'results[i].by.personalSpace.operations[j].targetType'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].by.personalSpace.permissions'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @v_expandableValue OUT, 'results[i].by.personalSpace.permissions[j].subjects._expandable.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @UserValue OUT, 'results[i].by.personalSpace.permissions[j].subjects.user.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @GroupValue OUT, 'results[i].by.personalSpace.permissions[j].subjects.group.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @Operation OUT, 'results[i].by.personalSpace.permissions[j].operation.operation'
            EXEC sp_OAMethod @jResp, 'StringOf', @TargetType OUT, 'results[i].by.personalSpace.permissions[j].operation.targetType'
            EXEC sp_OAMethod @jResp, 'BoolOf', @anonymousAccess OUT, 'results[i].by.personalSpace.permissions[j].anonymousAccess'
            EXEC sp_OAMethod @jResp, 'BoolOf', @unlicensedAccess OUT, 'results[i].by.personalSpace.permissions[j].unlicensedAccess'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @queryParams
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -G -d "start=0"
	-d "limit=200"
	-d "expand=%3Cstring%3E"
	-d "expand=%3Cstring%3E"
	-H "Authorization: Bearer <access_token>"
https://your-domain.atlassian.net/wiki/rest/api/content/:id/version

Postman Collection Item JSON

{
  "name": "Get content versions",
  "request": {
    "auth": {
      "type": "oauth2"
    },
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{baseUrl}}/api/content/:id/version?start=0&limit=200&expand=<string>&expand=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "content",
        ":id",
        "version"
      ],
      "query": [
        {
          "key": "start",
          "value": "0",
          "description": "The starting index of the returned versions."
        },
        {
          "key": "limit",
          "value": "200",
          "description": "The maximum number of versions to return per page.\nNote, this may be restricted by fixed system limits."
        },
        {
          "key": "expand",
          "value": "<string>",
          "description": "A multi-value parameter indicating which properties of the content to expand.\n\n- `collaborators` returns the users that collaborated on the version.\n- `content` returns the content for the version."
        },
        {
          "key": "expand",
          "value": "<string>",
          "description": "A multi-value parameter indicating which properties of the content to expand.\n\n- `collaborators` returns the users that collaborated on the version.\n- `content` returns the content for the version."
        }
      ],
      "variable": [
        {
          "key": "id",
          "value": "<string>",
          "type": "string",
          "description": "(Required) The ID of the content to be queried for its versions."
        }
      ]
    },
    "description": "Returns the versions for a piece of content in descending order.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content. If the content is a blog post, 'View' permission\nfor the space is required."
  },
  "response": [
    {
      "name": "Returned if the requested versions are returned.",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": {
              "content": "Added as a part of security scheme: oauth2",
              "type": "text/plain"
            },
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/content/:id/version?start=0&limit=200&expand=<string>&expand=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "content",
            ":id",
            "version"
          ],
          "query": [
            {
              "key": "start",
              "value": "0"
            },
            {
              "key": "limit",
              "value": "200"
            },
            {
              "key": "expand",
              "value": "<string>"
            },
            {
              "key": "expand",
              "value": "<string>"
            }
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"results\": [\n  {\n   \"by\": {\n    \"type\": \"known\",\n    \"accountId\": \"nostrud\",\n    \"accountType\": \"atlassian\",\n    \"email\": \"anim elit esse ut\",\n    \"publicName\": \"ullamco\",\n    \"profilePicture\": {\n     \"path\": \"p\",\n     \"width\": -77872476,\n     \"height\": 61065658,\n     \"isDefault\": false\n    },\n    \"displayName\": \"eu\",\n    \"_expandable\": {\n     \"operations\": \"Excepteur\",\n     \"details\": \"consequat irure nostrud Lorem\",\n     \"personalSpace\": \"aute ullamco mollit\"\n    },\n    \"_links\": {},\n    \"username\": \"nulla laborum\",\n    \"userKey\": \"elit\",\n    \"operations\": [\n     {\n      \"operation\": \"restore\",\n      \"targetType\": \"blogpost\"\n     },\n     {\n      \"operation\": \"copy\",\n      \"targetType\": \"attachment\"\n     }\n    ],\n    \"details\": {\n     \"business\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"personal\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    },\n    \"personalSpace\": {\n     \"id\": -97629470,\n     \"key\": \"labore exercitation nulla ex\",\n     \"name\": \"Duis consectetur anim\",\n     \"type\": \"laborum reprehenderit laboris Ut\",\n     \"status\": \"laboris sit mollit nulla\",\n     \"_expandable\": {\n      \"settings\": \"nisi sit\",\n      \"metadata\": \"qui do\",\n      \"operations\": \"v\",\n      \"lookAndFeel\": \"esse irure aliquip amet dolor\",\n      \"permissions\": \"cillum mollit\",\n      \"icon\": \"proident aliquip\",\n      \"description\": \"voluptate enim\",\n      \"theme\": \"voluptate\",\n      \"history\": \"ea tempor\",\n      \"homepage\": \"esse sed Lorem\"\n     },\n     \"_links\": {},\n     \"icon\": {\n      \"path\": \"nostrud enim mollit voluptate dolor\",\n      \"width\": 30074773,\n      \"height\": 56410680,\n      \"isDefault\": true\n     },\n     \"description\": {\n      \"plain\": {\n       \"value\": \"nostrud in tempor\",\n       \"representation\": \"view\",\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\": \"exercitation Ut\",\n       \"representation\": \"view\",\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\": 2894494,\n       \"limit\": 84285993,\n       \"size\": -38756606,\n       \"_links\": {}\n      }\n     },\n     \"operations\": [\n      {\n       \"operation\": \"delete\",\n       \"targetType\": \"comment\"\n      },\n      {\n       \"operation\": \"purge_version\",\n       \"targetType\": \"space\"\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\": \"update\",\n        \"targetType\": \"blogpost\"\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\": \"create\",\n        \"targetType\": \"application\"\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\": \"cillum reprehenderit eu sunt\"\n      },\n      \"links\": {\n       \"color\": \"culpa qui\"\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\": \"sed\"\n      }\n     },\n     \"history\": {\n      \"createdDate\": \"1952-06-10T14:31:50.998Z\"\n     }\n    }\n   },\n   \"when\": \"1953-06-13T02:44:53.322Z\",\n   \"friendlyWhen\": \"magna culpa consectetur et\",\n   \"message\": \"esse quis id\",\n   \"number\": 323605,\n   \"minorEdit\": true,\n   \"_expandable\": {\n    \"content\": \"esse \",\n    \"collaborators\": \"non Excepteur\"\n   },\n   \"_links\": {},\n   \"content\": {\n    \"value\": \"<Circular reference to #/components/schemas/Content detected>\"\n   },\n   \"collaborators\": {\n    \"users\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"userKeys\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"_links\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n   }\n  },\n  {\n   \"by\": {\n    \"type\": \"unknown\",\n    \"accountId\": \"Duis fugiat cupidatat\",\n    \"accountType\": \"atlassian\",\n    \"email\": \"ea in quis anim\",\n    \"publicName\": \"ullamco Lorem in\",\n    \"profilePicture\": {\n     \"path\": \"est sit\",\n     \"width\": -36330137,\n     \"height\": -12646253,\n     \"isDefault\": true\n    },\n    \"displayName\": \"deserunt a\",\n    \"_expandable\": {\n     \"operations\": \"velit in quis ipsum\",\n     \"details\": \"magna ea\",\n     \"personalSpace\": \"Excepteur eu est\"\n    },\n    \"_links\": {},\n    \"username\": \"eiusmod in cupidatat\",\n    \"userKey\": \"esse\",\n    \"operations\": [\n     {\n      \"operation\": \"create\",\n      \"targetType\": \"blogpost\"\n     },\n     {\n      \"operation\": \"create\",\n      \"targetType\": \"blogpost\"\n     }\n    ],\n    \"details\": {\n     \"business\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"personal\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    },\n    \"personalSpace\": {\n     \"id\": 47490726,\n     \"key\": \"velit \",\n     \"name\": \"nulla aliqua\",\n     \"type\": \"ea laboris\",\n     \"status\": \"cillum adipisicing ullamco laboris\",\n     \"_expandable\": {\n      \"settings\": \"proident ex\",\n      \"metadata\": \"quis irure dol\",\n      \"operations\": \"nostrud eiusmod nisi\",\n      \"lookAndFeel\": \"exercitation sunt labore non\",\n      \"permissions\": \"eiusmod in ad fugiat\",\n      \"icon\": \"nisi nostrud\",\n      \"description\": \"adipisicing in voluptate\",\n      \"theme\": \"ad dolore Duis sunt\",\n      \"history\": \"u\",\n      \"homepage\": \"nul\"\n     },\n     \"_links\": {},\n     \"icon\": {\n      \"path\": \"cillum sit eu\",\n      \"width\": -34925021,\n      \"height\": 90425798,\n      \"isDefault\": false\n     },\n     \"description\": {\n      \"plain\": {\n       \"value\": \"quis sunt\",\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\": \"sit id\",\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\": 83779927,\n       \"limit\": -87535719,\n       \"size\": -65924145,\n       \"_links\": {}\n      }\n     },\n     \"operations\": [\n      {\n       \"operation\": \"purge_version\",\n       \"targetType\": \"attachment\"\n      },\n      {\n       \"operation\": \"move\",\n       \"targetType\": \"application\"\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\": \"export\",\n        \"targetType\": \"attachment\"\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\": \"use\",\n        \"targetType\": \"page\"\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\": \"veniam\"\n      },\n      \"links\": {\n       \"color\": \"nisi\"\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\": \"tempor laboris proident esse do\"\n      }\n     },\n     \"history\": {\n      \"createdDate\": \"2007-04-13T10:59:32.679Z\"\n     }\n    }\n   },\n   \"when\": \"1989-05-19T00:33:37.730Z\",\n   \"friendlyWhen\": \"irure ut\",\n   \"message\": \"adipisicing id ad sunt sint\",\n   \"number\": 74656274,\n   \"minorEdit\": false,\n   \"_expandable\": {\n    \"content\": \"des\",\n    \"collaborators\": \"eu\"\n   },\n   \"_links\": {},\n   \"content\": {\n    \"value\": \"<Circular reference to #/components/schemas/Content detected>\"\n   },\n   \"collaborators\": {\n    \"users\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"userKeys\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"_links\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n   }\n  }\n ],\n \"start\": 56422235,\n \"limit\": -9071484,\n \"size\": 19664442,\n \"_links\": {}\n}"
    },
    {
      "name": "Returned if the calling user does not have permission to view the\ncontent.",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": {
              "content": "Added as a part of security scheme: oauth2",
              "type": "text/plain"
            },
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/content/:id/version?start=0&limit=200&expand=<string>&expand=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "content",
            ":id",
            "version"
          ],
          "query": [
            {
              "key": "start",
              "value": "0"
            },
            {
              "key": "limit",
              "value": "200"
            },
            {
              "key": "expand",
              "value": "<string>"
            },
            {
              "key": "expand",
              "value": "<string>"
            }
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}