---
title: "Update a location"
method: PATCH
path: "/locations/{id}"
tags: ["Locations"]
---

# Update a location

`PATCH /locations/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string

## Response `200`

Success - location updated

- object
  - `data` object
    - `id` string
    - `name` string
    - `is_deleted` boolean
    - `aois` object
      - `features` object[]
        - `type` string
        - `properties` object
        - `geometry` object
          - `type` string
          - `coordinates` array[]
            - array[]
              - …
    - `aoiSize` string

## Other responses

- `404` — Location not found
- `4XX` — Client-side error

---

[API](https://skmtc.net/skywatch/apis/api-specification.md) · [All operations](https://skmtc.net/skywatch/apis/api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skywatch/api-specification/revisions/51f7c5a8d15d/schema)
