---
title: Device Location
framework: Device Management
role: symbol
role_heading: Web Service Endpoint
platforms: [iOS 9.3+, iPadOS 9.3+, Mac Catalyst 9.3+]
path: devicemanagement/device-location-command
---

# Device Location

Request the location of a device when in Lost Mode.

## URL

PUT https://yourmdmhost.example.com/mdm

## Response Codes

200 OK: The response object the system returns for the Device Location Command.

## Discussion

Discussion A device responds with error codes: 12067: If it isn’t in Lost mode. 12068: If its location is unknown. 12078: If the command is invalid while in Lost Mode. Refer to the following sections to determine supported channels and requirements, and to see an example request and response. Command availability  |   |   |   |   |   |  Example request and response

## HTTP Body

The request object the server returns for the Device Location Command.

## Topics

### Commands and responses

- [DeviceLocationCommand](devicemanagement/devicelocationcommand.md)
- [DeviceLocationResponse](devicemanagement/devicelocationresponse.md)

## See Also

### Lost device

- [Enable Lost Mode](devicemanagement/enable-lost-mode-command.md)
- [Play Lost Mode Sound](devicemanagement/play-lost-mode-sound-command.md)
- [Disable Lost Mode](devicemanagement/disable-lost-mode-command.md)
