Historical Data
Returns data at a point in time. If the entry ID belongs to a deleted entry this will return the data at time of deletion. If field is a calculated field it will always return current value.
Swagger
Params
name | Parameter type | Data Type | Values | Description |
---|---|---|---|---|
entryTypeId | body | int | 2104 | The numerical ID of the EntryType |
fields | body | int[] | [12,23] | The numerical IDs of the fields |
entries | body | int[] | [1,2,3] | The numerical IDs of the entries |
fromDate | body | date-time | "2021-04-26T11:16:10.955Z" | The nearest date to get data from |
wrapIntoArrays | query | boolean | true/false | If true, the response will be wrapped into arrays fields that could have multiple values |
Body
{
"entryTypeId": int,
"fields": [
int
],
"entries": [
int
],
"fromDate": "date-time"
}
Request
POST {{host}}/api/rest/v4/data/entrydata/getHistoricalData HTTP/1.1
Content-Type: application/json
Authorization: {{auth}}
{
"entryTypeId": 2013,
"fields": [
2211,
2212
],
"entries": [
2772624
],
"fromDate": "2021-04-26T11:16:10.955Z"
}
Responses
HTTP/1.1 200 OK
{
"totalRecords": 1,
"rows": [
{
"EntryId": 2772624,
"Subject": {
"type": 0,
"id": 2772624,
"name": "Test Interactions",
"entryListId": 2013
}
}
]
}
Errors
HTTP/1.1 400 Bad Request
{
"message": "Field with Id \"2302\" does not exist"
}
HTTP/1.1 400 Bad Request
{
"message": "Bad request"
}