Set Recovery Lock password API deprecated?

tobiasjk
New Contributor II

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?

tobiasjk_0-1713534733401.png

 

Source: https://developer.jamf.com/jamf-pro/docs/privileges-and-deprecations

1 ACCEPTED SOLUTION

talkingmoose
Moderator
Moderator

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.

View solution in original post

2 REPLIES 2

talkingmoose
Moderator
Moderator

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.

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"