Get a version for a document
get/documents/{objectTypeName}/{documentId}/versions/{version}
Gets the full representation of a version from a document's version history. A link to this representation is returned in the links property of a version summary.
1{2 "typeName": "string",3 "id": "string",4 "version": "string",5 "displayLabel": "string",6 "operation": "string",7 "createdBy": "string",8 "createdAt": "2019-08-24T14:15:22Z",9 "links": [10 {11 "method": "string",12 "rel": "string",13 "uri": "string",14 "href": "string",15 "title": "string",16 "type": "string",17 "itemType": "string",18 "responseType": "string",19 "responseItemType": "string"20 }21 ],22 "values": [23 {24 "name": "string",25 "label": "string",26 "previousVersionValue": {},27 "value": {},28 "type": "string",29 "valueChanged": true30 }31 ]32}
| Name | Type | Required | Description |
|---|---|---|---|
documentId | string | true | The ID of the document. |
objectTypeName | string | true | The object type of the document. |
version | string | true | The version of the document to fetch. |
| Name | Type | Required | Description |
|---|---|---|---|
changedOnly | boolean | false | Indicates whether to return only the fields that have changed between the previous and requested document version. Default: false |
includeDisplayLabel | boolean | false | Indicates whether to include the display label for the document in the version. Default: false |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 200 | OK | The request succeeded. | Schema | |
| 400 | Bad Request | Version history was not available for the specified document. | Schema | |
| 404 | Not Found | The specified document or document version was not found. | Schema |