Skip to main content

I am trying to do a HTTP PUT request to update a ticket.  I can not get the Agent to update while updating a ticket.  I have also tried to update the agent through the documentation's recommendation of using the 'assign.xml?responder_id=2468' but this fails too.


var myURL = "companyhelpdesk.net/helpdesk/tickets/1234.xml"


var msgHeaders = { "Authorization" : "Basic " + Utilities.base64Encode("123456789abcdefg") };  



    httpParameters = {
      'method' : 'PUT',
      'headers' : msgHeaders,
      'contentType' : 'application/xml; charset=utf-8',
      'payload' : '<helpdesk_ticket><responder-id type="integer" nil="false">2468</responder-id><priority>3</priority><status>3</status></helpdesk_ticket>'
    };

The priority and status update fine but I can not get the 'Agent' / responder to update/change.  Any help is appreciated.  Thanks!




Hi,






Sorry for the pretty late reaction to the post but it is possible to associate an agent to a ticket via API. Here's the API documentation which can help you with the datapoints needed - https://developer.freshdesk.com/api/#update_ticket






Cheers!