Skip to main content
Question

JSS Accepting JSON?

  • November 23, 2016
  • 2 replies
  • 19 views

boberito
Forum|alt.badge.img+22

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?

2 replies

mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • November 23, 2016

boberito
Forum|alt.badge.img+22
  • Author
  • Jamf Heroes
  • November 23, 2016

Damn...I saw that post but was hoping by now it was solved. Posting via XML then it is.