Skip to main content
PATCH
/
v1
/
warehouses
/
{id}
Update
curl --request PATCH \
  --url https://{defaultHost}/v1/warehouses/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "warehouse": {
    "label": "Updated Warehouse"
  }
}
'
{
  "id": "705d6cfd-8d4e-4981-8754-d9edb69aef1c",
  "object": "warehouse",
  "label": "Updated Warehouse",
  "default": false,
  "address": "ac1663b1-0159-44ed-b80d-41cdcfcacb6c",
  "created_at": 1773748405,
  "updated_at": 1773748405
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
warehouse
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

label
string

The name of this warehouse.

default
boolean

Whether or not this warehouse is the account's default.

address

Expandable – The associated address ID.

created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.