Method
PATCH /v1/collections/:id/rules
Path Parameters
Collection ID
Body Parameters
Rules definition
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)application/json
curl -X PATCH https://api.voyantcloud.com/v1/collections/col_123/rules \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"definition_json": {
"includeTags": ["summer"],
"excludeTags": ["archived"],
"destinationPlaceIds": ["paris"],
"price": { "min": 100, "max": 500, "currency": "EUR" },
"availability": { "from": "2025-06-01", "to": "2025-08-31" },
"rules": [ { "type": "tag", "condition": "equals", "value": "family" } ]
}
}'
{ "ok": true }
Update a collection’s dynamic rules definition.
PATCH /v1/collections/:id/rules
Hide properties
includeTags
and excludeTags. For manual collections, prefer manualProductIds; for smart
collections, use rules and related filter keys.Authorization: Bearer YOUR_API_KEY)curl -X PATCH https://api.voyantcloud.com/v1/collections/col_123/rules \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"definition_json": {
"includeTags": ["summer"],
"excludeTags": ["archived"],
"destinationPlaceIds": ["paris"],
"price": { "min": 100, "max": 500, "currency": "EUR" },
"availability": { "from": "2025-06-01", "to": "2025-08-31" },
"rules": [ { "type": "tag", "condition": "equals", "value": "family" } ]
}
}'
{ "ok": true }