• Document Up to Date

Get Item Versions

Get content item version history.

Resource Information

This service uses the tomcat application on port 8080 by default. To see a list of default ports click here

The context for this API is /studio, please prefix the API URLs with this context.

HTTP Verb
GET
URL
/api/1/services/api/1/content/get-item-versions.json
Response Formats
JSON
Required Role
N/A

Parameters

Name
Type
Required
Description
site_id
String
Site to use
path
String
Path of the content

Example

Request

GET .../api/1/services/api/1/content/get-item-versions.json?site_id=mysite&path=/site/website/index.xml

Response

Status 200 OK

  1{
  2    "item":
  3        {
  4            "name": "index.xml",
  5            "internalName": "Home",
  6            "contentType": "/page/home",
  7            "uri": "/site/website/index.xml",
  8            "path": "/site/website",
  9            "browserUri": "",
 10            "navigation": false,
 11            "floating": true,
 12            "hideInAuthoring": false,
 13            "previewable": true,
 14            "lockOwner": "",
 15            "user": "admin",
 16            "userFirstName": "admin",
 17            "userLastName": "",
 18            "nodeRef": null,
 19            "metaDescription": null,
 20            "site": "documentation",
 21            "page": true,
 22            "component": false,
 23            "document": false,
 24            "asset": false,
 25            "isContainer": false,
 26            "container": false,
 27            "disabled": false,
 28            "savedAsDraft": false,
 29            "submitted": false,
 30            "submittedForDeletion": false,
 31            "scheduled": false,
 32            "published": false,
 33            "deleted": false,
 34            "inProgress": true,
 35            "live": false,
 36            "inFlight": false,
 37            "isDisabled": false,
 38            "isSavedAsDraft": false,
 39            "isInProgress": true,
 40            "isLive": false,
 41            "isSubmittedForDeletion": false,
 42            "isScheduled": false,
 43            "isPublished": false,
 44            "isNavigation": false,
 45            "isDeleted": false,
 46            "isNew": false,
 47            "isSubmitted": false,
 48            "isFloating": false,
 49            "isPage": true,
 50            "isPreviewable": true,
 51            "isComponent": false,
 52            "isDocument": false,
 53            "isAsset": false,
 54            "isInFlight": false,
 55            "eventDate": "2017-07-05T21:32:02+02:00",
 56            "endpoint": null,
 57            "timezone": null,
 58            "numOfChildren": 0,
 59            "scheduledDate": null,
 60            "publishedDate": null,
 61            "mandatoryParent": null,
 62            "isLevelDescriptor": false,
 63            "categoryRoot": null,
 64            "lastEditDate": "2017-07-05T21:32:02+02:00",
 65            "form": "/page/home",
 66            "formPagePath": "simple",
 67            "renderingTemplates":
 68                [
 69                    {
 70                        "uri": "/templates/web/pages/home.ftl",
 71                        "name": "DEFAULT"
 72                    }
 73                ],
 74            "folder": false,
 75            "submissionComment": null,
 76            "components": null,
 77            "documents": null,
 78            "levelDescriptors": null,
 79            "pages": null,
 80            "parentPath": null,
 81            "orders":
 82                [
 83                    {
 84                        "name": null,
 85                        "id": "default",
 86                        "disabled": null,
 87                        "placeInNav": null,
 88                        "order": -1
 89                    }
 90                ],
 91            "children": [ ],
 92            "size": 0,
 93            "sizeUnit": null,
 94            "mimeType": "application/xml",
 95            "levelDescriptor": false,
 96            "newFile": false,
 97            "reference": false,
 98            "new": false
 99        },
100    "versions":
101        [
102            {
103                "lastModifiedDate": "2017-07-05T19:32:02Z",
104                "lastModifier": "admin admin",
105                "versionNumber": "5a32289a6e564898e318238a01fa94095ea5b1e9",
106                "contentItem": null,
107                "comment": "Wrote content /site/website/index.xml"
108            },
109            {
110                "lastModifiedDate": "2017-07-05T19:29:03Z",
111                "lastModifier": "admin admin",
112                "versionNumber": "42e4cf3955ddd83f7018838a33020bcb7f0d6cb6",
113                "contentItem": null,
114                "comment": "Initial commit."
115            }
116        ]
117    }

Responses

Status
Location
Response Body
200

See example above.