Problem getting resolution of request using API
Hi, All
I'm integrating our servicedesk plus with out internal product using API and working in Python.
I successfully got details of a response, uploaded attachment to a request using API but I ain't able to "GET" resolution of a request. Getting following error:
{"operation":{"result":{"message":"Error when validating URL - Invalid URL for the requested operation.","status":"Failed"}}}
Also adding sample code.
- request_closure_data = {"operation": {"details": {"closeAccepted": "Accepted","closeComment": "closure comments"}}}
- parameters = {
- "TECHNICIAN_KEY" : "<my key>",
- "format" : "json",
- "OPERATION_NAME" : "EDIT_REQUEST",
- "INPUT_DATA" : str(request_closure_data)
- }
- res = requests.request("PUT",API_URL+"/sdpapi/request/<my_request_id>/close" , params = parameters)
- print(res.text)
I'm using Servicedesk plus 9.3 build number 9322. Any help would be appreciated.
New to ADSelfService Plus?