I am trying to use JAMF School api for Teacher . It is working.
The one endpoint that I am having trouble with is changing the student photo
- token , String, (Placed in URL) Token obtained by the POST teacher/authenticate call
- id, Integer, (Placed un URL) Student ID
- photo, File, Photo file
request.httpBody = fileData
// Either this for Content-Type Header
request.addValue("image/jpeg", forHTTPHeaderField: "Content-Type")
// or this for Multipart
request.addValue("multipart/form-data; charset=utf-8; boundary=__X_PAW_BOUNDARY__", forHTTPHeaderField: "Content-Type")
I would appreciate some example of the endpoint working, preferably in Swift, but any working example or instruction of what the endpoint is expecting, would be appreciated.
Steven