PATCH
Update a warehouse
Scope:
inventory:warehouses.writehttps://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
warehouseId
stringrequiredWarehouse 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/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Warehouse not foundapplication/json422Validation errorapplication/json429Rate limit exceededapplication/json