Jamf Pro API Help

jwbeatty
New Contributor II

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!

1 REPLY 1

luke_reagor
Contributor II

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