> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a bin

> Update a bin

> [!WARNING]
>
> **Confirm your deployment before running this request.** This page describes an API contract;
> a published reference does not establish hosted availability. Check the dated
> [host report](https://docs.stateset.com/api-reference/hosts.md) and obtain your deployment URL and credentials.
> Replace the example host if your provisioned service uses a different URL.

### Path parameters

**id** `integer (int32)` *required*

Bin ID

### Request body

`UpdateBinRequest`

**aisle** `string,null`

**bin\_type** `string,null`

**capacity** `string,null`

Decimal string; send `''` to clear the capacity.

**is\_active** `boolean,null`

**position** `string,null`

**rack** `string,null`

**shelf** `string,null`

**zone** `string,null`

### Response

`BinResponse`

**aisle** `string,null`

**bin\_type** `string` *required*

**capacity** `string,null`

**code** `string` *required*

**created\_at** `string` *required*

**id** `integer (int32)` *required*

**is\_active** `boolean` *required*

**position** `string,null`

**rack** `string,null`

**shelf** `string,null`

**updated\_at** `string` *required*

**warehouse\_id** `integer (int32)` *required*

**zone** `string,null`

### Status codes

| Code | Meaning |
| - | - |
| `200` | — |
| `400` | — |
| `404` | — |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/stateset-icommerce.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request PUT \
  --url 'https://api.stateset.com/api/v1/warehouse-bins/{id}' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "aisle": "string",
  "bin_type": "string",
  "capacity": "San Francisco",
  "is_active": true,
  "position": "string",
  "rack": "string",
  "shelf": "string",
  "zone": "string"
}'
```

```json 200 theme={null}
{
  "aisle": "string",
  "bin_type": "string",
  "capacity": "San Francisco",
  "code": "string",
  "created_at": "2026-08-31T14:22:05Z",
  "id": 1001,
  "is_active": true,
  "position": "string",
  "rack": "string",
  "shelf": "string",
  "updated_at": "2026-08-31T14:22:05Z",
  "warehouse_id": 1001,
  "zone": "string"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.