Get a record's history.
The record's history contains a list of all changes to a record since it was added.
Request
GET https://www.activityinfo.org/resources/form/{formId}/record/{recordId}/history
Successful response
application/json
object | |||
entries | array[object] | required | |
formId | string | The id of the form to which the record belongs | required |
recordId | string | The record id | required |
version | integer | The version of the change. | required |
time | integer | The time of the change, in seconds since 1970-01-01. This is the time when the change was accepted by the server. For records that are edit offline, this is the time of synchronization with the server, and may be later than the time the user actually made the change. | required |
changeType | string | The type of change to the record | required |
user | object | The user responsible for this change. If this record was submitted through a collection link, the user will be empty. | optional |
id | string | required | |
name | string | required | |
string | required | ||
values | array[object] | The list of field values that were changed. | required |
fieldId | string | The id of the field | required |
fieldLabel | string | The field's label | required |
oldValueLabel | string | A human-readable label describing the old value | required |
newValueLabel | string | A human-readable label describe the value after the change. | required |
Error responses
Status Code | Error Code | Description |
---|---|---|
401 | AUTHENTICATION_ |
The request must be authenticated |
403 | FORBIDDEN | Permission denied |
404 | NOT_ |
The resource could not be found |
410 | DELETED | The resource has been deleted |
Example
curl -u anything:YOUR_API_TOKEN \
https://www.activityinfo.org/resources/form/ck8pu9ha07/record/ck34ujs6v8/history