JAMF School API: Teacher-endpoint won't work

skrae
New Contributor

Dear community,
I'm trying to write a small script which helps me to automatically upload the photos of our students that our teachers can see them in the JAMF teacher app and the Classroom app. I found the following very promising endpoint: https://api.zuludesk.com/teacher/uploadPhoto (https://api.zuludesk.com/docs/#api-Teacher-uploadPhoto)
Currently, I have the following issue: I'm trying to authenticate the teacher with the following route: https://api.zuludesk.com/teacher/authenticate (https://api.zuludesk.com/docs/#api-Teacher-Authenticate). Before doing that, I need to get the company ID with https://api.zuludesk.com/teacher/companies (https://api.zuludesk.com/docs/#api-Teacher-Get_companies) but I get the error "404 - Not found". The request is set to "POST" and authentication to "Basic Auth" with username "Network ID" and password "API Key". Other endpoints are working fine (i. e. https://api.zuludesk.com/users/groups). What am I doing wrong?

4 REPLIES 4

rer
New Contributor II

Hello,

I have exactly the same problem.

This Api-Requests or ok:
https://<myschool>.jamfcloud.com/api/users
https://api.zuludesk.com/users
https://<myschool>.jamfcloud.com/api/devices
https://api.zuludesk.com/devices

But these Requests won't work:
https://<myschool>.jamfcloud.com/api/ibeacons
https://api.zuludesk.com/ibeacons
https://<myschool>.jamfcloud.com/api/classes
https://api.zuludesk.com/classes

I always get the error: "404 - Not found".

It's very important to our school. What do i have to change?

rer
New Contributor II

Solved: Add to the header:

"X-Server-Protocol-Version: 3"

no the teacher endpoint dosnt work with this anyway. or dose it? You wrote a post here after this answer https://community.jamf.com/t5/jamf-school/jamf-api-the-endpoint-teacher-is-not-usable/m-p/255375#M65... 

teacher endpoint and dep endpoint returning 404 in my setup.

bratelefant
New Contributor II

It have also a hard time with this endpoint, but mainly figuring out how to authenticate a teacher. I can call the „companies“ endpoint in v2, but I get an empty array of companies. Where is the „company“ to be created/configured?