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

# Update Warehouse

> Update an existing warehouse at the given index

<Note>
  **V2 Preview** — This endpoint is part of the V2 API preview. Breaking changes may occur.
</Note>

## Overview

Update an existing warehouse / location at the given zero-based index. Only provided fields are updated. Vendor scope required.

<Warning>
  Warehouse updates are indexed by **zero-based array position**, not by `locationId`. Use `GET /v2/settings/shipping/warehouses` to determine the current index order.
</Warning>

## Path Parameters

<ParamField path="index" type="integer" required>
  Zero-based index of the warehouse to update.
</ParamField>

## Request Body

<ParamField body="name" type="string">Max 200 chars.</ParamField>
<ParamField body="address1" type="string">Max 500 chars.</ParamField>
<ParamField body="address2" type="string">Max 500 chars.</ParamField>
<ParamField body="city" type="string">Max 200 chars.</ParamField>
<ParamField body="province" type="string">Max 200 chars.</ParamField>
<ParamField body="zip" type="string">Max 50 chars.</ParamField>
<ParamField body="country" type="string">Max 200 chars.</ParamField>

## Response

```json 200 theme={null}
{ "success": true }
```

## Example

```bash theme={null}
curl -X PUT "https://staging-api.puppetvendors.com/settings/shipping/warehouses/0" \
  -H "x-access-token: YOUR_VENDOR_JWT" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Updated Warehouse Name" }'
```
