Method
PATCH /v1/products/:id/itinerary/days/:dayId/accommodation
Path Parameters
Product ID.
Itinerary day ID.
Body Parameters
Headers
Bearer token (requires
products:write).application/jsoncurl -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
}'
{
"assignment": {
"id": "dayacc_001",
"option_id": "accom_opt_123",
"nights": 3
}
}
Assign or update the accommodation option for an itinerary day.
PATCH /v1/products/:id/itinerary/days/:dayId/accommodation
products:write).application/jsoncurl -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
}'
{
"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.