> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lock Device

Lock a device based on its management ID.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Jamf documentation](https://developer.jamf.com/jamf-pro/reference/post_v2-mdm-commands).

## Parameters

| Parameter | Description |
| - | - |
| Client Data | A JSON array of objects of devices to lock. Each object's `managementId` can be obtained via the `Get Computer Inventory` action. For example: <pre>`[  {    "managementId": "<management_id>"  }]`</pre> |
| Command Data Message | The message to display to the user. |
| Command Data PIN | The 6 digit passcode the user needs to enter in order to unlock the device. |
| Command Data Phone Number | The phone number to display to the user. |

## Example Output

```json theme={"dark"}
[
	{
		"id": "1",
		"href": "https://yourJamfProUrl.jamf/api/v1/resource/1"
	}
]
```
