Docs

Add Module Category

POST /moduleCategories

POST/moduleCategories

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **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

FieldTypeRequiredDescription
namestringRequiredDisplay name for the category.
iconstringRequiredIcon identifier for the category.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token.
BAD_REQUEST400Invalid name or icon value.