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": "person",3 "id": "uuid_100",4 "version": "2",5 "operation": "update",6 "createdBy": "videmo",7 "createdAt": "2023-06-28T19:28:42.948Z",8 "links": [9 {10 "method": "GET",11 "rel": "self",12 "href": "/svi-datahub/documents/person/uuid_100/versions/2",13 "uri": "/svi-datahub/documents/person/uuid_100/versions/2",14 "type": "application/vnd.sas.investigate.version+json"15 }16 ],17 "values": [18 {19 "name": "created_at_dttm",20 "label": "Created At",21 "value": "2015-10-01T18:30:03.656Z",22 "type": "TIMESTAMP",23 "valueChanged": true24 },25 {26 "name": "created_by_user_id",27 "label": "Created By",28 "value": "unit_test",29 "type": "STRING",30 "valueChanged": true31 },32 {33 "name": "first_name",34 "label": "First Name",35 "value": "John",36 "type": "STRING",37 "valueChanged": true38 },39 {40 "name": "last_name",41 "label": "Last Name",42 "value": "Smith",43 "type": "STRING",44 "valueChanged": true45 },46 {47 "name": "last_updated_at_dttm",48 "label": "Last Updated At",49 "value": "2023-06-28T19:28:42.948Z",50 "type": "TIMESTAMP",51 "valueChanged": true52 },53 {54 "name": "last_updated_by_user_id",55 "label": "Last Updated By",56 "value": "videmo",57 "type": "STRING",58 "valueChanged": true59 },60 {61 "name": "id",62 "label": "Person Id",63 "value": "uuid_100",64 "type": "STRING",65 "valueChanged": true66 },67 {68 "name": "version",69 "label": "Version",70 "value": 2,71 "type": "LONG",72 "valueChanged": true73 },74 {75 "name": "birthday",76 "label": "Birthday",77 "type": "TIMESTAMP",78 "valueChanged": false79 },80 {81 "name": "gender",82 "label": "Gender",83 "type": "REFERENCE_DATA",84 "valueChanged": false85 },86 {87 "name": "ps_inc",88 "label": "Ps Inc",89 "type": "NUMERIC",90 "valueChanged": false91 }92 ]93}
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. |
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 |