---
title: "PUT /api/locations/{locationId}"
method: PUT
path: "/api/locations/{locationId}"
tags: ["Location"]
---

# PUT /api/locations/{locationId}

`PUT /api/locations/{locationId}`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/locations/{locationId}`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

## Path parameters

- `locationId` string, uuid, required: A valid GUID

## Request body

- EditLocationDto
  - `guid` string, required
  - `name` string, required
  - `timeOfDay` number, float, required
  - `indoorLighting` ColorDto, required
    - `r` number, float, nullable
    - `g` number, float, nullable
    - `b` number, float, nullable
    - `brightness` number, float, nullable
  - `ambientSound` string, required
  - `ambienceVolume` number, float, required
  - `margin` MarginDto, required
    - `top` number, float, nullable
    - `right` number, float, nullable
    - `bottom` number, float, nullable
    - `left` number, float, nullable
  - `tags` string[], nullable

## Response `200`

OK

- string

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
