Posted on 11-22-2016 05:29 PM
I'm on 9.96 of the JSS and I've been playing with the API with programs like Postman and using Curl in scripts. I seem to have no problems with XML doing a GET or a PUT/POST but I can't seem to do a PUT/POST with JSON, only a GET.
I'm getting a response from the server.
Unsupported Media Type The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method
Has anyone had any success using the API and JSON beyond GETs?
Posted on 11-22-2016 07:46 PM
Its a known issue/limitation. See here: https://www.jamf.com/jamf-nation/feature-requests/2945/add-ability-to-post-put-using-json-via-the-js...
Posted on 11-22-2016 07:54 PM
Damn...I saw that post but was hoping by now it was solved. Posting via XML then it is.