Posted on 02-25-2022 02:19 AM
I am working with the api to create users and query or update device info.
Now i am trying to perform dep endpoint actions, but i get a 404 Not Found error.
If the payload is malformed i get a 500. The endpoints for devices and users works with post and get requests as (mostly) expected.
this is related to the "teacher endpoint not working" thread https://community.jamf.com/t5/jamf-school/jamf-api-the-endpoint-teacher-is-not-usable/m-p/255375#M65...
Solved! Go to Solution.
Posted on 03-01-2022 12:55 PM
Oh, i am a so dump person... I forgot to send a X-Server-Protocol-Header-Version with my request. After adding the correct header to the dep endpoint request, I get an 200 answer from the api.
In this video I got the hint https://www.youtube.com/watch?v=wUCO8O5BL84&t=3s @17:53
teacher and dep endpoints are version 3
device stuff are older version 1 - that's why it works with the implementation. and not at the v.3 endpoints (mainly)
for me the problem is solved.
Posted on 03-01-2022 12:55 PM
Oh, i am a so dump person... I forgot to send a X-Server-Protocol-Header-Version with my request. After adding the correct header to the dep endpoint request, I get an 200 answer from the api.
In this video I got the hint https://www.youtube.com/watch?v=wUCO8O5BL84&t=3s @17:53
teacher and dep endpoints are version 3
device stuff are older version 1 - that's why it works with the implementation. and not at the v.3 endpoints (mainly)
for me the problem is solved.