Hi everyone,
Have you ever tried to update a PreStage Enrollment through the v2 API?
I'm trying to create a python script that will update the customPackageIds of said PreStage Enrollment when certain packages have a new version available.
This always gives me error 500, internal server error, I think.
It would be something like this:
import requests
payload = {
"customPackageIds": "110"
}
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer XYZ',
'Content-Type': 'application/json',
}
response = requests.put('https://XYZ/api/v2/computer-prestages/3', json=payload, headers=headers)
This is my first time doing something like that with python and JSON and I would gladly use python-jss for this but as far as I know it can't handle PreStage Enrollments.
What's your take on this?