1 Reply Latest reply on Nov 15, 2017 10:31 AM by justin.gray@weldre4.k12.co.us

    Assign an existing ticket via the API?


      Is it possible to assign a ticket to a specific tech after the ticket is created using the API?   Nothing I try seems to work.


      What I need to do is create a ticket, escalate that ticket and then assign it to a tech.


      Using the API I can create a ticket that is assigned to a tech ( via the "assignToCreatingTech": true )

      I can then, with the API,  escalate that ticket, but once I do the ticket is unassigned  ( as I would expect )

      I have not been able to find a way to create a ticket, escalate it and then assign it.


      I have tried a variety of update methods per the API Guide,  but nothing seems to work:


      curl -X PUT -d assign.json "http://XXXXXXX/helpdesk/WebObjects/Helpdesk.woa/ra/Tickets/32499?apiKey=XXXXXXXXXX&username=admin"


      with my assign.json file containing

      {"clientTech": {"id":4,"type":"Tech","displayName":"Joe Tech"}}

      Everything returns and Invalid JSON String error.