Update a ticket product
Changes the quantity or price of a product on a ticket. Changing the quantity adjusts the product's stock by the difference.
put
Authorizations
api_keystringRequired
Your business's Cekat API key, from Settings → Developers & API in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans.
Path parameters
idstring · uuidRequired
The ticket product ID.
Body
quantityinteger · min: 1Optional
adjusted_pricenumberOptional
Responses
202
Product updated.
application/json
messagestringOptional
400
quantity or adjusted_price is invalid.
application/json
401
The API key is missing or invalid.
application/json
404
The ticket product was not found.
application/json
429
Rate limit exceeded. Wait and retry.
application/json
put/api/tickets/products/{id}
PUT /api/tickets/products/{id} HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"quantity": 2
}{
"message": "text",
"data": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Last updated