---
title: Activation Lock a Device
framework: devicemanagement
role: symbol
role_heading: Web Service Endpoint
path: devicemanagement/activation-lock-devices
---

# Activation Lock a Device

Enable activation lock on a remote device.

## URL

POST https://mdmenrollment.apple.com/device/activationlock

## Response Codes

200 OK: 400 Bad Request:  MALFORMED_REQUEST_BODY: The request body is malformed. USER_AGENT_INVALID:  The User-Agent header is invalid. USER_AGENT_MISSING:  The User-Agent header is missing or has no assigned value. 401 Unauthorized: The token has expired. The client should retry with a new auth token. 403 Forbidden: The auth token is invalid.

## Mentioned in

Migrating managed devices

## Discussion

Discussion Find My iPhone Activation Lock is a feature of iCloud and Automated Device Enrollment that makes it harder for anyone to use or resell a lost or stolen device. Activation Lock is a feature of iCloud, and MDM has the ability to allow users to enable the feature on supervised devices. There are two ways to manage Activation Lock: the Activation Lock request is available for devices that appear in the Apple School Manager portal or Apple Business portal, or the Find My approach. Whichever method is the first to enable Activation Lock takes precedence.

## HTTP Body

Request enabling activation lock for a device.

## Topics

### Request and Response

- [ActivationLockRequest](devicemanagement/activationlockrequest.md)
- [ActivationLockStatusResponse](devicemanagement/activationlockstatusresponse.md)

### Bypass Codes

- [Creating and using bypass codes](devicemanagement/creating-and-using-bypass-codes.md)

## See Also

### Device management

- [Get Device Details](devicemanagement/device-details.md)
- [Get a List of Devices](devicemanagement/fetch-devices.md)
- [Sync the List of Devices](devicemanagement/sync-devices.md)
- [Disown Devices](devicemanagement/disown-devices.md)
- [Get Beta Enrollment Tokens](devicemanagement/get-beta-enrollment-tokens.md)
