Docs
Add Resource Category
POST /resourceCategories
POST
/resourceCategoriesRequired 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 asset category on the event. Categories group related asset types together and are referenced when creating or updating asset types. Create categories before creating asset types that belong to them.
Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Display name for the category. Must not be empty. |
| icon | string | Required | Icon identifier for the category. |
Example Request
{
"name": "Production",
"icon": "cog"
}
Response
201 Created — No response body.
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid token. |
BAD_REQUEST | 400 | Name is empty or invalid. |