API - Assign Agent

  • 5 April 2013
  • 1 reply
  • 204 views

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!



This topic has been closed for comments

1 reply

Userlevel 4
Badge +12

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!