Get summary of version history for a document

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

Gets a summary of version history for a document. Version summaries contain a link to fetch the full version representation.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/svi-datahub/documents/person/uuid_100/versions",
7 "uri": "/svi-datahub/documents/person/uuid_100/versions",
8 "type": "application/vnd.sas.collection"
9 },
10 {
11 "method": "GET",
12 "rel": "next",
13 "href": "/svi-datahub/documents/person/uuid_100/versions?start=40&limit=40",
14 "uri": "/svi-datahub/documents/person/uuid_100/versions?start=40&limit=40",
15 "type": "application/vnd.sas.collection"
16 },
17 {
18 "method": "GET",
19 "rel": "self",
20 "href": "/svi-datahub/documents/person/uuid_100/versions?start=0&limit=40",
21 "uri": "/svi-datahub/documents/person/uuid_100/versions?start=0&limit=40",
22 "type": "application/vnd.sas.collection"
23 }
24 ],
25 "name": "versions",
26 "start": 0,
27 "count": 1,
28 "items": [
29 {
30 "typeName": "person",
31 "id": "uuid_100",
32 "version": "2",
33 "operation": "update",
34 "createdBy": "videmo",
35 "createdAt": "2023-06-28T19:28:42.948Z",
36 "links": [
37 {
38 "method": "GET",
39 "rel": "self",
40 "href": "/svi-datahub/documents/person/uuid_100/versions/2",
41 "uri": "/svi-datahub/documents/person/uuid_100/versions/2",
42 "type": "application/vnd.sas.investigate.version+json"
43 }
44 ]
45 }
46 ],
47 "limit": 40,
48 "version": 2
49}

Path Parameters

NameTypeRequiredDescription
documentId
string
true

The ID of the document.

objectTypeName
string
true

The object type of the document.

Query Parameters

NameTypeRequiredDescription
includeDisplayLabel
boolean
false

Indicates whether to include the display label for the document.

Default:
false
limit
integer
false

The maximum number of items to return in a page of results.

Default:
40
sortBy
string
false

The sort criteria for the request.

Default:
{field name of the document's version field}:descending
start
integer
false

The start index. This is used for paging.

Default:
0

Responses

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