The GoTo Community is currently experiencing some technical issues affecting new posts and comments. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
Miles Maddox
10 years agoNew Member
Service Desk API - Create release instruction
I've been passively putting together a client library for the Service Desk API. I've only created the methods as I needed them so it's not at all 100% complete. My next need is to create a release wit...
SaschaZ
10 years agoRetired GoTo Contributor
Hi Miles,
If you're looking to update, you need to use "PUT" and not "POST", also you need to include "Accept: application/json" to indicate the type of information you're accepting on the response which would explain why you're getting the 406 error.
Hope that works!
If you're looking to update, you need to use "PUT" and not "POST", also you need to include "Accept: application/json" to indicate the type of information you're accepting on the response which would explain why you're getting the 406 error.
The correct syntax should be something like:
curl -u -X PUT -H "Authorization: Basic REDACTED==" -H "Content-Type: application/json” -H "Accept: application/json” -d '{ "release" : { "release_instruction" : "works" }}’ "http://deskapi.gotoassist.com/external_api/v1/releases/1000.json”
Hope that works!