Get an action for a document
Gets the full representation of an action from a document's action history. A link to this representation is returned in the links property of an action summary.
1{2 "actionId": "2",3 "action": "Edited the Person",4 "actionType": "DOCUMENT_EDIT",5 "objectType": "Person",6 "objectId": "uuid_100",7 "objectVersion": "2",8 "createdBy": "videmo",9 "createdAt": "2023-06-28T00:00:00.000Z",10 "links": [11 {12 "method": "GET",13 "rel": "self",14 "href": "/svi-datahub/documents/person/uuid_100/actions/2?actionType=DOCUMENT_EDIT",15 "uri": "/svi-datahub/documents/person/uuid_100/actions/2?actionType=DOCUMENT_EDIT",16 "type": "application/vnd.sas.investigate.action"17 }18 ],19 "version": 1,20 "items": [21 {22 "type": "tableItem",23 "action": "Changed fields",24 "headings": [25 "Field",26 "Original Value",27 "New Value"28 ],29 "rows": [30 [31 {32 "value": "Person Id",33 "type": "STRING"34 },35 {36 "value": "uuid_100",37 "type": "STRING"38 }39 ],40 [41 {42 "value": "First Name",43 "type": "STRING"44 },45 {46 "value": "John",47 "type": "STRING"48 }49 ],50 [51 {52 "value": "Last Name",53 "type": "STRING"54 },55 {56 "value": "Smith",57 "type": "STRING"58 }59 ],60 [61 {62 "value": "Created By",63 "type": "STRING"64 },65 {66 "value": "unit_test",67 "type": "STRING"68 }69 ],70 [71 {72 "value": "Last Updated By",73 "type": "STRING"74 },75 {76 "value": "videmo",77 "type": "STRING"78 }79 ]80 ]81 }82 ]83}
Name | Type | Required | Description |
---|---|---|---|
actionId | string | true | The ID of the action. This could be a document version or the ID of an action. |
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 type of the action. This is one of the available action types for the document. Currently, this parameter is not required by the server, but omitting it is deprecated. This parameter will be required in a future version of the API. Certain action types will not be available from this endpoint if the actionType parameter is not provided. |
tableLimit | integer | false | Specifies the length at which to truncate child document action history. For example, assume that a request is made with this query parameter set to 5. If, for a given child document type, there is less than 5 child documents for a specific action (Create/Edit/Delete), then 'n' child documents are returned. If 'n' is greater than 5, a message instructs the user to use the Versions control to view the child documents. Default: 10 |
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 or action was not found. | Schema |