---
api: 'Merchant API'
---

# Update a location

Update details of a specific location, based on its ID. 

Only the fields provided in the request will be updated. Any omitted fields will retain their current values.

:::note
The value of the location's `type` parameter cannot be updated.
:::

## Endpoint

PATCH `/api/locations/{location_id}`

## Request body

### Attributes

## Returns

### 200

Location updated

#### Response attributes


## Error responses

| HTTP status code | Description |
| --- | --- |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |
