---
title: Set Recovery Lock
framework: Device Management
role: symbol
role_heading: Web Service Endpoint
platforms: [macOS 11.5+]
path: devicemanagement/set-recovery-lock-command
---

# Set Recovery Lock

Set or clear the Recovery Lock password.

## URL

PUT https://yourmdmhost.example.com/mdm

## Response Codes

200 OK: The response object the system returns for the Set Recovery Lock Command.

## Discussion

Discussion This command sets, or clears, a password on booting to recoveryOS. When the device unenrolls MDM the system removes the recovery password. This command is only available on a Mac with Apple silicon. Command availability  |   |   |   |   |   |  Example request and response

## HTTP Body

The request object the server returns for the Set Recovery Lock Command.

## Topics

### Commands and responses

- [SetRecoveryLockCommand](devicemanagement/setrecoverylockcommand.md)
- [SetRecoveryLockResponse](devicemanagement/setrecoverylockresponse.md)

## See Also

### Recovery Lock

- [Verify Recovery Lock](devicemanagement/verify-recovery-lock-command.md)
