Listing Versions
This returns the Entity metadata and data for every version of this Entity, in ascending creation order.
This endpoint supports retrieving extended metadata; provide a header X-Extended-Metadata: true to return a creator data object alongside the creatorId Actor ID reference.
There is an optional query flag relevantToConflict that returns the subset of past versions of an Entity that are relevant to the Entity's current conflict. This includes the latest version, the base version, the previous server version, and any other versions since the last time the Entity was in a conflict-free state. If the Entity is not in conflict, zero versions are returned.
Path parameters
The numeric ID of the Project
Name of the Dataset
UUID of the Entity
Query parameters
Flag to return only the versions of the entity that are relevant to the current conflict.
Response
OK
Example response
[
{
"label": "John (88)",
"current": true,
"creatorId": 1,
"userAgent": "Enketo/3.0.4",
"version": 2,
"baseVersion": 1,
"branchId": "b0e927b6-958a-42f6-8344-1deb37ee9672",
"trunkVersion": 1,
"branchBaseVersion": 1,
"data": {
"firstName": "John",
"age": "88"
},
"dataReceived": {
"firstName": "John",
"age": "88",
"label": "John (88)"
},
"source": {
"event": {},
"submission": {}
},
"baseDiff": [
"name",
"age"
],
"serverDiff": [
"name",
"age"
]
}
]