Posted on 10-03-2019 01:48 PM
I am in the process of writing some scripts to delete mobile devices from my Prestage Enrollment groups using the new endpoints added to the Jamf Pro API. Every time I request the scope of a Prestage Enrollment group I receive a 404 not found error like the one below.
{
"httpStatus": 404,
"errors": [
{
"code": "INVALID_ID",
"description": "Mobile Device Prestage with id 2 does not exist",
"id": "2",
"field": "id"
}
]
}
I am using the following URL format for the request:
https://[my org].jamfcloud.com/uapi/v1/mobile-device-prestages/2/scope
I am using the id that shows up in the URL field when you select the Prestage Enrollment group in Jamf Pro. Am I using the wrong id? Or, is there some other formating required in the id field? Thanks!
Posted on 10-04-2019 09:05 AM
Linking this to the other discussion where we're doing a little step-by-step troubleshooting... in case others come across this discussion. :)
https://www.jamf.com/jamf-nation/feature-requests/3455/prestage-enrollment-api-access