Retrieve the History of a Field over a Time Range

Retrieve the history of a field of an instance over a time range, with the date, origin and value of each change.

1 min read

From example Create an Object

Retrieve the history of a country field on a specific time range

Send a history request

  1. HTTP URL: https://<your-instance>.yooi.io/api/history/type/Country/id/{object id}/population?updateRange={from in ms}%2C{to in ms}
  1. 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
  }
]

Read more

Related articles

Was this page helpful?