Update a warehouse

POST https://api.tamio.com/v2/warehouses/update/{uuid}

Updates an existing warehouse's details, location, and service areas.

Path Parameters

uuid string*

UUID of the warehouse to update.

Body Parameters

label string*

Human-readable name for the warehouse.

custom_id string

Custom identifier for external system integration.

areas_served array of string*

Destination codes this warehouse can fulfill orders for.

country string*

Country code where the warehouse is located.

address string*

Street address.

city string*

City.

postcode string

Postal code.

state string

State or province code.

email string

Contact email.

telephone string

Contact phone number.

Responses

200 Warehouse updated

Warehouse updated

status integer
warehouse Warehouse
400 Validation or business-logic error
401 Missing or invalid API key
/warehouses/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/warehouses/update/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "warehouse": {
    "id": "string",
    "object": "warehouse",
    "label": "string",
    "custom_id": "string",
    "country": "string",
    "address": "string",
    "city": "string",
    "postcode": "string",
    "state": "string",
    "email": "string",
    "telephone": "string",
    "areas_served": [],
    "products": 0,
    "variants": 0,
    "has_notes": false
  }
}