Skip to main content

Method

PATCH /v1/products/:id/accommodations/sets/:setId/items/:itemId

Path Parameters

id
uuid
required
Product ID.
setId
uuid
required
Accommodation set ID.
itemId
uuid
required
Candidate item ID.

Body Parameters

All fields are optional; only provided keys are updated.

Headers

Authorization
string
Bearer token (requires products:write).
content-type
string
application/json

Request Example

curl -X PATCH "https://api.voyantcloud.com/v1/products/prod_123/accommodations/sets/acset_01/items/acitem_01" \
  -H "Authorization: Bearer $VOYANT_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "priority": 2,
    "pricingJson": { "net": 120, "currency": "EUR" }
  }'

Response Example

{ "item": { "id": "acitem_01J0D0G0T5ZTRM87X7FQ0KCY4N" } }