Rest API to retrive all tickets from last 6 months or 1 year

Hello Team,
I am trying to retrieve all the tickets from last 6 months or 1 year.
1 I was successfully get all the tickets from last 30 days but in the UI we have options like created with last 60 days, last 180 days and select period same way i want to get this action through rest API.
2 My requirement is like select any 3 or 6 months using Rest API and get all those tickets created between January to April month.
Please suggest how to add the filer in rest api URL.

Hi @sunanda ,

Greetings!

By default, only tickets that have been created within the past 30 days will be returned. For older tickets, use the updated_since filter.

A maximum of 300 pages (9000 tickets) will be returned.

Kindly try the below filter; change the timestamp as per your case. Hope this helps:

/api/v2/tickets?updated_since=2015-01-19T02:00:00Z

Thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.