I’m looking for a filter to use in a POST to /tickets that allows me to return all tickets based on the “ForId” in the ticket. I know I can do this by returning all tickets and then filtering the list in my tool, but we’re approaching 70k tickets which would be hundreds of pages and an almost 400mb JSON file returned each time, so I was hoping for a more efficient method using a filter in the body.
I’m building an automation that randomly selects a subset of users from a very large list of users and creates a ticket with them as the “On Behalf Of” (ForId in API speak). I’m randomizing and limiting so that I don’t overload my techs with hundreds of tickets at once. Once the ticket is complete, there are mechanisms to remove them from the list getting randomized for future batches.
I want to be able to create another batch of tickets before the first batch is necessarily 100% complete, so I’m wanting to see if the specific user already has this specific ticket created for them and then filter them from the list if the ticket already exists. This will prevent duplicate tickets if they happen to be randomly chosen a second (or third) time.

