Get summary of action history for a document
Gets a summary of action history for a document. Action history summaries contain a link to fetch the full representation. The 'Accept-Item' request header can be used to fetch the available action types for this document. If the 'Accept-Item' header is set to "application/vnd.sas.investigate.action.type", this endpoint returns a collection of action types. This collection represents all of the action types that exist historically for the specified document, providing an exhaustive list of all possible filter options.
1{2 "links": [3 {4 "method": "GET",5 "rel": "collection",6 "href": "/svi-datahub/documents/person/uuid_100/actions",7 "uri": "/svi-datahub/documents/person/uuid_100/actions",8 "type": "application/vnd.sas.collection",9 "itemType": "application/vnd.sas.investigate.action.summary"10 },11 {12 "method": "GET",13 "rel": "self",14 "href": "/svi-datahub/documents/person/uuid_100/actions?start=0&limit=10",15 "uri": "/svi-datahub/documents/person/uuid_100/actions?start=0&limit=10",16 "type": "application/vnd.sas.collection",17 "itemType": "application/vnd.sas.investigate.action.summary"18 },19 {20 "method": "GET",21 "rel": "availableActionTypes",22 "href": "/svi-datahub/documents/person/uuid_100/actions",23 "uri": "/svi-datahub/documents/person/uuid_100/actions",24 "type": "application/vnd.sas.collection",25 "itemType": "application/vnd.sas.investigate.action.type"26 }27 ],28 "name": "actions",29 "start": 0,30 "count": 1,31 "items": [32 {33 "actionId": "2",34 "action": "Edited the Person",35 "actionType": "DOCUMENT_EDIT",36 "objectType": "Person",37 "objectId": "uuid_100",38 "objectVersion": "2",39 "createdBy": "videmo",40 "createdAt": "2023-06-28T19:28:42.948Z",41 "links": [42 {43 "method": "GET",44 "rel": "self",45 "href": "/svi-datahub/documents/person/uuid_100/actions/2?actionType=DOCUMENT_EDIT",46 "uri": "/svi-datahub/documents/person/uuid_100/actions/2?actionType=DOCUMENT_EDIT",47 "type": "application/vnd.sas.investigate.action"48 }49 ],50 "version": 151 }52 ],53 "limit": 10,54 "version": 255}
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 |
---|---|---|---|
actionType | string | false | The filter criteria for the request. Basic selection filter syntax for the 'actionType' field is supported. For example: '?actionType=DOCUMENT_EDIT|COMMENT_CREATE' returns only DOCUMENT_EDIT or COMMENT_CREATE actions. |
limit | integer | false | The maximum number of items to return in a page of results. Default: 10 |
sortBy | string | false | The sort criteria for the request. The only supported sort criteria are 'createdAt' ascending and 'createdAt' descending. Default: createdAt: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 | Action history was not available for the specified document. | Schema | |
404 | Not Found | The specified document was not found. | Schema |