What is the "any ticket" placeholder (e.g. {{ticket.id}} ) that can be used for the update_many endpoint?

6 Comments

  • Ahmed Zaid
    Community Moderator

    Hi Alex,

    I can confirm that both endpoints with placeholder {{ticket.id}} in the path work fine for that purpose. Are facing a specific error while testing?

    1
  • Ahmed Zaid
    Community Moderator

    Hi Alex C. I get this error if I forget to enter the ticket.id placeholder value or a enter a wrong separator.

     

    Did you make sure you enter a single integer or integers separated by commas only?

    1
  • Obsa Hassen

    How can get 

    0
  • Alex C

    Hi Ahmed Zaid! When running the test in the Webhook page I get a 400 Bad Request error that says:

    {
      "error": {
        "title": "Invalid attribute",
        "message": "You passed an invalid value for the ids attribute. Invalid parameter: ids must match \A\s*(?:(?:\d+|suspended|deleted)(?:\s*,\s*|\s*,?\s*\z))+ from api/v2/tickets/update_many"
      }
    }

    This is when testing with the following endpoint (xyz substituted by our domain of course):

    https://xyz.zendesk.com/api/v2/tickets/update_many.json?ids={{ticket.id}}

    0
  • Alex C

    Oh! I did not fill in that ticket.id placeholder! When I used the tickets/{{ticket.id}} endpoint it wasn't needed to be a successful test so I didn't even consider it. It works!!! Thank you so much Ahmed Zaid

    0
  • Ahmed Zaid
    Community Moderator

    You are most welcome. Glad it has been resolved.

    Best wishes!

    0

Please sign in to leave a comment.

Powered by Zendesk