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

# Update location

`PUT /v2/locations/{id}`

## Request

- Base URL: `https://api.brex.com`
- URL: `https://api.brex.com/v2/locations/{id}`
- Auth: OAuth 2
  - Authorization code: `https://accounts-api.brex.com/oauth2/default/v1/authorize`
  - Token URL: `https://accounts-api.brex.com/oauth2/default/v1/token` scopes: `locations`
- TypeScript: <https://skmtc.dev/brex-com/apis/team-api/docs/v2/locations/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint updates a location by ID. Only the fields present in the request body are changed.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string, nullable

## Request body

- UpdateLocationRequest
  - `name` string, nullable: Name of the location. Cannot be blank when supplied.
  - `description` string, nullable: Description of the location. Pass null or an empty string to clear it.

## Response `200`

updateLocation 200 response

- LocationResponse
  - `id` string, required
  - `name` string, required: Name of the location
  - `description` string, nullable: Description of the location

## Changes

- **2026-09-30** `76616101e54a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brex-com/apis/team-api/changes/v2/locations/:id/put.md)

---

[API](https://skmtc.dev/brex-com/apis/team-api.md) - [All operations](https://skmtc.dev/brex-com/apis/team-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brex-com/apis/team-api/revisions/76616101e54a?raw)
