From example Create an Object
Retrieve the history of a country field on a specific time range
Send a history request
- HTTP URL:
https://<your-instance>.yooi.io/api/history/type/Country/id/{object id}/population?updateRange={from in ms}%2C{to in ms}
- HTTP method:
GET
Run an example request
curl -X 'GET' \
'https://<your-instance>.yooi.io/api/history/type/Country/id/9d8126bb-4cde-4410-8eb3-77885aacc8f7/population?updateRange=1640991600000%2C1648764000000' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {integrationToken}'Read the response
[
{
"updateTime": 1652449407750,
"eventId": "1652449407750-0",
"origin": {
"source": "CLIENT",
"userId": "c1381d06-3b47-4e4d-8a7f-0462fea23882"
},
"data": 67340000
},
{
"updateTime": 1652449392402,
"eventId": "1652449392402-0",
"origin": {
"source": "CLIENT",
"userId": "c1381d06-3b47-4e4d-8a7f-0462fea23882"
},
"data": 67390000
}
]