---
title: "Assign location to a device"
method: PUT
path: "/devices/{id}/location"
tags: ["Device"]
---

# Assign location to a device

`PUT /devices/{id}/location`

Assign a location to a specific device with extra map and geographical properties.

## Path parameters

- `id` integer, required

## Request body

- XiqDeviceLocationAssignment — Device location assignment
  - `location_id` integer, required — The assigned location ID, it must be FLOOR type
  - `x` number, double — The horizontal value in the floor map
  - `y` number, double — The vertical value in the floor map
  - `latitude` number, double — The latitude in the geography
  - `longitude` number, double — The longitude in the geography

## Response `200`

OK

---

[API](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api.md) · [All operations](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/extremecloudiq/extremecloud-iq-api/versions/5ff7ab84e8e8/schema)
