> ## 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

Remotely lock a device. For macOS clients, an unlock PIN will be created.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Iru Endpoint Management documentation](https://api-docs.iru.com/#f2fc0e99-c758-4eb8-bb3d-0ea72d0c0213).

## Parameters

| Parameter | Description |
| - | - |
| Device ID | The device's ID. |

## Example Output

```json theme={"dark"}
{
	"PIN": "496406"
}
```

## Workflow Library Example

[Lock Device with Iru Endpoint Management and Send Results Via Email](https://library.blinkops.com/workflows/lock-device-with-iru-endpoint-management-and-send-results-via-email)

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/lock-device-with-iru-endpoint-management-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/lock-device-with-iru-endpoint-management-and-send-results-via-email/canvas)
