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

# Update a location

`PATCH /locations/{id}`

## Request

- Base URL: `https://www.ruddr.io/api/workspace`
- URL: `https://www.ruddr.io/api/workspace/locations/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string: The name of the location. Max 255 characters.
  - `isActive` boolean: Whether the location is active.

## Response `200`

200

- Location
  - `id` string: The unique identifier for the object.
  - `name` string: The name of the location.
  - `isActive` boolean: Whether the location is active.
  - `createdAt` string, date-time: The timestamp when the object was created.

## Other responses

- `400`: 400
- `404`: 404
- `409`: 409

---

[API](https://skmtc.dev/ruddr/apis/ruddr-api.md) · [All operations](https://skmtc.dev/ruddr/apis/ruddr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ruddr/apis/ruddr-api/revisions/01c3f2a969ba?raw)
