I'm able to grab ticket IDs and extract the data from the tickets that I need to determine which ones to move just fine. I'm trying to call my TicketUpdate operation as shown below.
Code: Select all
reqHeaders = {'Accept': 'application/json', 'charset': 'UTF-8', 'Content-Type': 'application/json'}
OTRShost = [ADDRESS FOR TICKET SYSTEM]
webservice = '[ADDRESS FOR TICKET SYSTEM]/otrs/nph-genericinterface.pl/Webservice/MoveFailedFaxes'
urlForAPI = webservice + '/TicketUpdate?'
params = {
'UserLogin': OTRSLogin,
'Password': OTRSPassword,
'TicketID': ticketID,
'Ticket': {
'Title': ticketTitle,
'Queue': 'Misc',
'State': 'open',
'PriorityID': 3
}
}
response = rpost(url=urlForAPI, params=params, headers=reqHeaders)