Skip to main content
PUT
/
settings
/
shipping
/
warehouses
/
{index}
Update Warehouse
curl --request PUT \
  --url https://staging-api.puppetvendors.com/settings/shipping/warehouses/{index} \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "name": "<string>",
  "address1": "<string>",
  "address2": "<string>",
  "city": "<string>",
  "province": "<string>",
  "zip": "<string>",
  "country": "<string>"
}
'

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.

V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Update an existing warehouse / location at the given zero-based index. Only provided fields are updated. Vendor scope required.
Warehouse updates are indexed by zero-based array position, not by locationId. Use GET /v2/settings/shipping/warehouses to determine the current index order.

Path Parameters

index
integer
required
Zero-based index of the warehouse to update.

Request Body

name
string
Max 200 chars.
address1
string
Max 500 chars.
address2
string
Max 500 chars.
city
string
Max 200 chars.
province
string
Max 200 chars.
zip
string
Max 50 chars.
country
string
Max 200 chars.

Response

200
{ "success": true }

Example

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" }'