API update to ticket group

3 Kommentare

  • Tipene Hughes
    Zendesk Developer Advocacy
    Hey Danielle,
     
    Thanks for reaching out!
     
    Just so I’m on the same page, could you clarify what you’re wanting to see updated? I.e do you need the tickets to be assigned to a particular group or do you need the tickets to appear in a specific view in your instance.
     
    Look forward to hearing from you soon!
     
    Tipene
    0
  • Danielle
    Zendesk Luminary

    Hi! It would need to be assigning tickets to a specific group. For ticket closures, we have used a shell script in the past to do so based on ticket ID. Thanks!

    0
  • Tipene Hughes
    Zendesk Developer Advocacy
    Okay, great! 
     
    I think the best way to go about this would be adding tags to the tickets via the Tickets API, and having the tags fire an automation that assigns the tickets to the specified group. 
     
    Because there's a bunch of tickets you're needing to update, you won't be able to do this all in one request. The endpoint you'll need to make the requests to is PUT /api/v2/tickets/update_many which accepts a comma-separated list of up to 100 ticket IDs or an array of up to 100 ticket objects, so you'll need to split the ticket ID list up into batches of 100. Then, you can loop over and run the API request for each batch of 100. Here's a link to our documentation with more detail on the Tickets API and update_many endpoint: 
    Since there will be quite a few requests made for a group of tickets this large, you'll also need to be mindful of rate limits. Here's a couple of links that go a bit more in-depth: 
    I hope this helps! Feel free to reach out with any questions.
     
    Tipene
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk