Skip to main content

Method

PATCH /v1/products/:id/itinerary/days/:dayId/accommodation

Path Parameters

id
uuid
required
Product ID.
dayId
uuid
required
Itinerary day ID.

Body Parameters

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/itinerary/days/day_001/accommodation" \
  -H "Authorization: Bearer $VOYANT_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "optionId": "accom_opt_123",
    "nights": 3
  }'

Response

{
  "assignment": {
    "id": "dayacc_001",
    "option_id": "accom_opt_123",
    "nights": 3
  }
}
optionId must belong to the same product. If the day does not exist or is not linked to the product, the API returns 400 or 404 accordingly.