How to update a participant category
Use this guide when you need to rename a participant category or change its buyer flag.
Prerequisites
-
Your API key
-
The
idof the category to update. UseGET /api/v2/account/getCategoriesto retrieve available category IDs
Request — rename a category
Bash
curl -X POST "https://your-event-domain.com/api/v2/account/setCategory" \
-H "Authorization: Bearer your_api_key_here" \
-F "id=42" \
-F "name=Premium Visitor"
Request — change buyer flag
Bash
curl -X POST "https://your-event-domain.com/api/v2/account/setCategory" \
-H "Authorization: Bearer your_api_key_here" \
-F "id=42" \
-F "is_buyer=true"
Response
JSON
{
"code": 200,
"errors": null,
"data": {
"id": 42,
"status": "updated"
},
"response_id": "1700000000.12346"
}
Notes
-
Only include the fields you want to change —
nameandis_buyercan be updated independently -
event_idis not required when updating an existing category byid -
If the
iddoes not match any existing category, a400error withInvalid Participant Category IDis returned