Forum Discussion
SaschaZ
9 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!