Clinia
RegistryVersionhistory

Get the history for a record or relationship

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

Retrieves a list of all operations performed on a specific source entity (record or relationship). Results can be paginated and filtered by a date range.

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.

perPage?integer

The number of items to return per page.

Formatint32
Default20
page?integer

The page number to retrieve.

Formatint32
Default1
from?string

The start of the date range filter (ISO 8601 format). The default value is the beginning of time.

Formatdate-time
to?string

The end of the date range filter (ISO 8601 format). The default value is now.

Formatdate-time

Response Body

A list of version history items for the entity.

application/json
  1. response

Represents a list version history item related to an entity.

[index: integer]?

Represents a single entry in an entity's version history.

Example Request
curl -X GET 'https://api..clinia.cloud/sources/string/v1/history/resources/string/string/operations'
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"    }  }]