I am looking at method SoftLayer_Ticket::addUpdate and it isn't obvious what JSON payload to include on the PUT and what the actual return from the update is. Can you help?
Asked
Active
Viewed 44 times
1 Answers
0
Is right, use addUpdate method for add a new comment by SL REST API, the method returns a SoftLayer_Ticket_Update sent in the request body, I recommend use POST method in this request. For more information, you could review the next link https://sldn.softlayer.com/reference/datatypes/SoftLayer_Ticket_Update/

Daniel Cabero
- 316
- 1
- 4
-
Thanks for the info. I issued the following URL https://api.softlayer.com/rest/v3/SoftLayer_Ticket/addUpdate/87557470 with content of { "parameters" : { "entry" : "Test REST API update case" } } with a method of POST. I got the following, RC 500 with MSG of "Internal Server Error" What am I doing wrong? – Gary Sutherland Aug 02 '19 at 17:31
-
the request is bad. Following the next request https://api.softlayer.com/rest/v3.1/SoftLayer_Ticket/87557470/addUpdate POST BODY { "parameters":[ { "entry":"Only test tech support2", "type": { "keyName":"AGENT" } } ] } – Daniel Cabero Aug 02 '19 at 20:54