How to restrict session visibility by participant category
Use this guide when you need to limit a session so it is only visible to participants in specific categories — for example, restricting a session to VIP attendees or a specific buyer group.
What you'll need before starting
|
What you need |
Where to get it |
|---|---|
|
Participant category IDs |
|
Request — restrict to specific categories
Bash
curl -X POST "https://your-event-domain.com/api/v2/sessions/set" \
-H "Authorization: Bearer your_api_key_here" \
-F "event_id=7" \
-F "id=42" \
-F "visibleToCategories[]=6" \
-F "visibleToCategories[]=8"
Request — make visible to all (remove restrictions)
Bash
curl -X POST "https://your-event-domain.com/api/v2/sessions/set" \
-H "Authorization: Bearer your_api_key_here" \
-F "event_id=7" \
-F "id=42" \
-F "visibleToCategories[]="
Notes
-
When
visibleToCategoriesisnullor empty, the session is visible to all participants -
Passing
visibleToCategories[]=with an empty value removes all restrictions -
Category IDs are event-specific — always retrieve them via
GET /api/v2/account/getCategoriesfor the correct event