---
title: "Edit location"
method: POST
path: "/locations/{locationId}"
tags: ["locations"]
---

# Edit location

`POST /locations/{locationId}`

## Request

- Base URL: `https://api.usecrouton.com`
- URL: `https://api.usecrouton.com/locations/{locationId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/usecrouton/apis/crouton-api/docs/locations/:locationId/post.ts> (a function with typed inputs; its response is checked against the schema)

Partially updates location overrides (displayName, description). Only provided fields are applied. The API key must be associated with a team administrator. Locations feature must be enabled.

## Request body

- object
  - `displayName` string, nullable
  - `description` string, nullable

## Response `200`

The updated location.

## Other responses

- `400`: 400
- `401`: Missing, invalid, revoked, or expired API key.
- `403`: API key lacks the required resource or access level.
- `404`: Location not found
- `422`: Locations feature is disabled for this organization.

## Changes

- **2026-10-28** `809cbf38e25a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usecrouton/apis/crouton-api/changes/locations/:locationId/post.md)

---

[API](https://skmtc.dev/usecrouton/apis/crouton-api.md) - [All operations](https://skmtc.dev/usecrouton/apis/crouton-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usecrouton/apis/crouton-api/revisions/809cbf38e25a?raw)
