Method
POST /v1/products/:id/accommodations/sets
Path Parameters
Product ID.
Body Parameters
Headers
Bearer token (requires
products:write).application/jsoncurl -X POST "https://api.voyantcloud.com/v1/products/prod_123/accommodations/sets" \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Priority Hotel Options",
"selectionStrategy": "priority"
}'
{
"item": {
"id": "acset_01J0D0EY7XG9ZW5P0N5T0KX6QG",
"name": "Priority Hotel Options",
"selection_strategy": "priority"
}
}
Create a new accommodation candidate set for a product.
POST /v1/products/:id/accommodations/sets
products:write).application/jsoncurl -X POST "https://api.voyantcloud.com/v1/products/prod_123/accommodations/sets" \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Priority Hotel Options",
"selectionStrategy": "priority"
}'
{
"item": {
"id": "acset_01J0D0EY7XG9ZW5P0N5T0KX6QG",
"name": "Priority Hotel Options",
"selection_strategy": "priority"
}
}