> ## 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).
</Note>

## Parameters

<div className="integrations-table">
  | 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.<br /><br />For example:<br /><pre><code>\[<br />  \{<br />    "managementId": "\<management\_id>"<br />  }<br />]</code></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.                                                                                                                                                                                                                         |
</div>

## Example Output

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

## Workflow Library Example

[Lock Device with Jamf and Send Results Via Email](https://library.blinkops.com/workflows/lock-device-with-jamf-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/lock-device-with-jamf-and-send-results-via-email/canvas" />
</div>
