---
title: "Lock device"
method: POST
path: "/api/v2/google-emm/devices/{deviceId}/lock"
tags: ["Google EMM"]
---

# Lock device

`POST /api/v2/google-emm/devices/{deviceId}/lock`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/google-emm/devices/{deviceId}/lock`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/google-emm/devices/:deviceId/lock/post.ts> (a function with typed inputs; its response is checked against the schema)

Locks a Google EMM enrolled device, as if the lock screen timeout had
expired.

#### Sample Request

```
curl -X POST https://console.jumpcloud.com/api/v2/google-emm/devices/{deviceId}/lock \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}"
```

## Path parameters

- `deviceId` string, byte, required

## Request body

- object

## Response `200`

A successful response.

- JumpcloudGoogleEmmCommandResponse

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
