Get only Changes from API

I have created a program that uses the API to get all tasks and place it in a PostgreSQL database, I download all the tasks in the project to copy it over but when updating the data base requesting everything from the API is inefficient.

Is there a flag or API request that can get only new changes in the project so it synchronises instead of deleting the table and recreating it.

Thanks
Antony Leons

Hi :wave:
Have a look at the concept of Webhooks and events in the API documentation! That should help.

2 Likes

Yes, webhook can be one solution.

Also, if you have access to the advanced search api, you can query for tasks modified after (last update time), like:
/workspaces/xyz/tasks/search?modified_at.after=2019-08-01T16:23:45Z
Keep in cache the last time you updated your data, and request changes since that date.

1 Like