Filtering Ticket Audits based on created_date | Community
Skip to main content

Filtering Ticket Audits based on created_date

  • February 22, 2024
  • 3 replies
  • 0 views

Is it possible to somehow filter the data for this endpoint? For example, based on the created_at value.

curl https://{subdomain}.zendesk.com/api/v2/ticket_audits.json?limit=1000 \  -v -u {email_address}:{password}

If I have 5000 ticket_ids, I want to avoid using the other endpoint where I have to query separately for each id. Hence, I want to try out this endpoint by obtaining all ticket_audits within a particular time range.

I tried using start_date and end_date as suggested for Events here: 

https://developer.zendesk.com/documentation/ticketing/events/filtering-events/

but it does not seem to work for ticket_audits. Any alternatives?

Additionally, this endpoint as a limit of 1000. Can this be increased? Because, currently I can only obtain data from today's date (1000 already) but what if i want to get data from the previous dates?

3 replies

Dave24
  • February 22, 2024

Since you haven't said anything about filtering, should I assume it's not possible at all?

 

I am using the incremental exports for "tickets" and "users" but are you sure the "ticket_audits" endpoint works with the "incremental" keyword?

These endpoints:

api/v2/incremental/ticket_audits.json?start_time=1568330298

api/v2/incremental/ticket_audits.json

give me the following error:

```
{
"error": "InvalidEndpoint",
"description": "Not found"
}

```


Dave24
  • February 22, 2024

You can't use "ticket_audits" as the item there, only tickets, ticket events, users, organizations, and more.

Ticket events might be the closest to what you're looking for. It might not give you exactly what you're looking for though.