Skip to main content
PATCH

Update a warehouse

Scope:inventory:warehouses.write
https://api.holded.com/api/v2/warehouses/{warehouseId}

Updates an existing warehouse. You can change the name, contact information, and address. The default warehouse flag cannot be changed via this endpoint.

Parameters

Path parameters

warehouseIdstringrequired

Warehouse ID (24-char hex ObjectId)

Request body

object
namestring
emailstring | null
phonestring | null
mobilestring | null
defaultboolean
addressobject | null
addressstring | null
citystring | null
provincestring | null
postal_codestring | null
countrystring | null
country_codestring | null

Request

python
import requests

url = "https://api.holded.com/api/v2/warehouses/{warehouseId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "name": "string",
    "email": "string",
    "phone": "string",
    "mobile": "string",
    "default": false,
    "address": {
        "address": "string",
        "city": "string",
        "province": "string",
        "postal_code": "string",
        "country": "string",
        "country_code": "string"
    }
}
response = requests.patch(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "string"
}

Success responses

200Warehouse updatedapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Warehouse not foundapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json