# Update Location

**PUT** `/v1/inventory/locations/:location_id`

Updates a location's name, code, address, account link, or active status.

### Path parameters

| Field | Type | Description |
|---|---|---|
| `location_id` | integer | ID of the location to update |

### Request fields

| Field | Type | Description |
|---|---|---|
| `name` | string | Display name |
| `code` | string | Short reference code |
| `address` | string | Physical address |
| `account_id` | integer | Linked seller account |
| `active` | integer | `1` to activate, `0` to deactivate |
| `metadata` | object | Arbitrary key-value data |

### Response fields

| Field | Type | Description |
|---|---|---|
| `location` | object | The updated location object |
