PATCH
Update a price list
Scope:
inventory:rates.writehttps://api.holded.com/api/v2/price-lists/{priceListId}Partially updates an existing price list (rate). Fields not present in the request body keep their current values.
Parameters
Path parameters
priceListId
stringrequiredPrice List ID (24-char hex ObjectId)
Request body
object
namestring
Display name for the price list
descriptionstring | null
Optional description
Request
python
import requests
url = "https://api.holded.com/api/v2/price-lists/{priceListId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"name": "string",
"description": "string"
}
response = requests.patch(url, headers=headers, json=payload)
print(response.json())Responses
Response
json
{
"id": "string"
}Success responses
200Price list updatedapplication/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Price list not foundapplication/json422Validation errorapplication/json