Get a version for a document

get/documents/{objectTypeName}/{documentId}/versions/{version}
Internal-Use Only

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.

Request Samples

1

Response Samples

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": true
24 },
25 {
26 "name": "created_by_user_id",
27 "label": "Created By",
28 "value": "unit_test",
29 "type": "STRING",
30 "valueChanged": true
31 },
32 {
33 "name": "first_name",
34 "label": "First Name",
35 "value": "John",
36 "type": "STRING",
37 "valueChanged": true
38 },
39 {
40 "name": "last_name",
41 "label": "Last Name",
42 "value": "Smith",
43 "type": "STRING",
44 "valueChanged": true
45 },
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": true
52 },
53 {
54 "name": "last_updated_by_user_id",
55 "label": "Last Updated By",
56 "value": "videmo",
57 "type": "STRING",
58 "valueChanged": true
59 },
60 {
61 "name": "id",
62 "label": "Person Id",
63 "value": "uuid_100",
64 "type": "STRING",
65 "valueChanged": true
66 },
67 {
68 "name": "version",
69 "label": "Version",
70 "value": 2,
71 "type": "LONG",
72 "valueChanged": true
73 },
74 {
75 "name": "birthday",
76 "label": "Birthday",
77 "type": "TIMESTAMP",
78 "valueChanged": false
79 },
80 {
81 "name": "gender",
82 "label": "Gender",
83 "type": "REFERENCE_DATA",
84 "valueChanged": false
85 },
86 {
87 "name": "ps_inc",
88 "label": "Ps Inc",
89 "type": "NUMERIC",
90 "valueChanged": false
91 }
92 ]
93}

Path Parameters

NameTypeRequiredDescription
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.

Query Parameters

NameTypeRequiredDescription
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

Responses

StatusMeaningDescription
200OKThe request succeeded. Schema
400Bad RequestVersion history was not available for the specified document. Schema
404Not FoundThe specified document or document version was not found. Schema