Get summary of version history for a document
get/documents/{objectTypeName}/{documentId}/versions
Gets a summary of version history for a document. Version summaries contain a link to fetch the full version representation.
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": 249}
Name | Type | Required | Description |
---|---|---|---|
documentId | string | true | The ID of the document. |
objectTypeName | string | true | The object type of the document. |
Name | Type | Required | Description |
---|---|---|---|
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 |
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 was not found. | Schema |