Retrieving new or updated records

You can retrieve newly created or recently updated records from the API using the ODATA filter query string.

For example:

Copy
https://api.iris.co.uk/hr/v2/employee?$filter=createdOn gt date('2022-01-01')
  • This returns information for all employees created since 1st Jan 2022.

  • The date you use should be the last time you pulled new records from the API.

You can also specify the latest created date you wish to retrieve as well.

For example:

Copy
https://api.iris.co.uk/hr/v2/employee?$filter=createdOn gt date('2022-01-01') and createdOn le date('2022-01-31')

This returns information for all employees created since 1st Jan 2022 but not after the end of the 31st of Jan 2022.