- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
04-19-2024
06:53 AM
- last edited on
03-04-2025
02:53 AM
by
kh-richa_mig
Hi all,
I have been using a script that sets the Recovery Lock password on Silicon Macs without the correct Recovery Lock password already set using the following API
https://JAMF_PRO_URL/api/preview/mdm/commands
As mentioned here:
https://learn.jamf.com/en-US/bundle/technical-articles/page/Recovery_Lock_Enablement_in_macOS_Using_...
However it looks like the /preview/mdm/commands has been deprecated, can someone confirm and is there another way to do it or can it only be done with PreStage now?
Source: https://developer.jamf.com/jamf-pro/docs/privileges-and-deprecations
Solved! Go to Solution.
- Labels:
-
Scripts

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 04-19-2024 08:56 AM
It's likely deprecated because the /preview/mdm/commands endpoint has moved out of preview and is now stable at the /v2/mdm/commands endpoint. Looks like you'll just need to slightly adjust your script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 04-19-2024 08:56 AM
It's likely deprecated because the /preview/mdm/commands endpoint has moved out of preview and is now stable at the /v2/mdm/commands endpoint. Looks like you'll just need to slightly adjust your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 04-22-2024 01:46 AM
That's it, thanks!
I wrote to Jamf about updating their documentation.
For anyone else having issues, you also need to update the API privileges to include "View MDM command information in Jamf Pro API"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 10-22-2024 12:17 PM
Are you able to share your now working again script?
