---
title: "Update a Location"
method: PUT
path: "/locations/{locationId}"
---

# Update a Location

`PUT /locations/{locationId}`

## Path parameters

- `locationId` string, required

## Headers

- `Accept-Encoding` string, required

## Request body

- object
  - `name` string — The name of the location. Name or direction parameters must be specified
  - `direction` number, float — The location direction in degrees clockwise from due north

## Response `200`

200

- object
  - `data` object
    - `location` object
      - `id` string
      - `name` string
      - `geometry` object
        - `type` string
        - `coordinates` number[]

---

[API](https://skmtc.dev/tomorrow/apis/tomorrowio-api.md) · [All operations](https://skmtc.dev/tomorrow/apis/tomorrowio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tomorrow/tomorrowio-api/revisions/18905002092a/schema)
