Clinia
RegistryVersionhistory

Get a specific history item

GET
/sources/{sourceKey}/v1/history/{collectionType}/{collectionKey}/{itemId}/operations/{operationId}

Get a single version history entry by its operation ID. The full data payload of the entity at that point in time can optionally be included.

headerX-Clinia-API-Key<token>
sourceKey*string

The source key.

collectionType*string

The type of the collection.

Value in"resources""relationships"
collectionKey*string

The key of the collection.

itemId*string

The id of the item.

operationId*string

The unique ID of the operation entry.

withPayload?boolean

If true, the full entity payload related to the operationId will be included in the response.

Defaultfalse

Response Body

The specific version history item.

application/json
  1. response

A version history item that includes the full data payload of the entity at that point in time.

id*string

The unique identifier of the resource or relationship.

type*string

The collection type of the entity.

targetType*v1CollectionType
Value in"resources""relationships"
operationId*string

The unique identifier of the operation.

taskId*string

The identifier of the task that processed this operation.

timestamp*string

The exact time the operation was applied.

Formatdate-time
action*v1OperationAction

The action to perform.

Value in"CREATE""UPSERT""DELETE""UPDATE"
userInfo*

Information about the user or service that performed the operation.

payload*
Example Request
curl -X GET 'https://api..clinia.cloud/sources/string/v1/history/resources/string/string/operations/string'
Example Response
{  "id": "string",  "type": "string",  "targetType": "resources",  "operationId": "string",  "taskId": "string",  "timestamp": "2019-08-24T14:15:22Z",  "action": "CREATE",  "userInfo": {    "id": "string",    "email": "string"  },  "payload": {    "id": "string",    "type": "string",    "meta": {      "createdAt": "2019-08-24T14:15:22Z",      "identifier": [        {          "id": "string",          "system": "string",          "value": "string",          "use": "string",          "period": {            "id": "string",            "start": "string",            "end": "string"          }        }      ],      "source": "string",      "updatedAt": "2019-08-24T14:15:22Z"    },    "data": {},    "contained": {      "property1": [        {          "id": "string",          "type": "string",          "meta": {            "createdAt": "2019-08-24T14:15:22Z",            "identifier": [              {                "id": "string",                "system": "string",                "value": "string",                "use": "string",                "period": {                  "id": "string",                  "start": "string",                  "end": "string"                }              }            ],            "source": "string",            "updatedAt": "2019-08-24T14:15:22Z"          },          "data": {}        }      ],      "property2": [        {          "id": "string",          "type": "string",          "meta": {            "createdAt": "2019-08-24T14:15:22Z",            "identifier": [              {                "id": "string",                "system": "string",                "value": "string",                "use": "string",                "period": {                  "id": "string",                  "start": "string",                  "end": "string"                }              }            ],            "source": "string",            "updatedAt": "2019-08-24T14:15:22Z"          },          "data": {}        }      ]    }  }}