---
title: "Update a building"
method: PUT
path: "/locations/building/{id}"
tags: ["Location"]
---

# Update a building

`PUT /locations/building/{id}`

Update a building information with the building ID.

## Path parameters

- `id` integer, required

## Request body

- XiqUpdateBuildingRequest
  - `parent_id` integer, required — The parent location ID
  - `name` string, required — The building name
  - `address` XiqAddress, required — The address for a site or building.
    - `address` string, required — The address line 1
    - `address2` string — The address line 2
    - `city` string, required — The city/town of the address
    - `state` string — The province/state of the address
    - `postal_code` string — The postal/ZIP code of the address
  - `latitude` number, double — The latitude coordinate for the building
  - `longitude` number, double — The longitude coordinate for the building

## Response `200`

OK

- XiqBuilding — The Building information on the floorplan.
  - `id` integer, required — The unique identifier
  - `create_time` string, date-time, required — The create time in UTC (ISO 8601 format)
  - `update_time` string, date-time, required — The last update time in UTC (ISO 8601 format)
  - `org_id` integer — The organization identifier, valid when enabling HIQ feature
  - `parent_id` integer, required — The parent location ID
  - `name` string, required — The building name
  - `address` XiqAddress — The address for a site or building.
    - `address` string, required — The address line 1
    - `address2` string — The address line 2
    - `city` string, required — The city/town of the address
    - `state` string — The province/state of the address
    - `postal_code` string — The postal/ZIP code of the address
  - `latitude` number, double — The latitude coordinate for the building
  - `longitude` number, double — The longitude coordinate for the building

---

[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)
