Docs
Add Module Category
POST /moduleCategories
POST
/moduleCategoriesRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Creates a new module category for the event. Module categories are used to organize module templates and help users find the right template type when building advances.
Returns 201 Created with no body on success.
Event scoping: These endpoints do not include {eventId} in the URL. The event is determined automatically from your x-Event-Token — the API uses it to know which event's data to return. Ensure you have a valid event token before making any calls in this folder.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Display name for the category. |
| icon | string | Required | Icon identifier for the category. |
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid token. |
BAD_REQUEST | 400 | Invalid name or icon value. |