Docs

Add Resource Type

POST /resourceTypes

POST/resourceTypes

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 asset type on the event. An asset type defines a template for a class of assets, including its display label, icon, category, and any custom properties that should be filled in when an asset of this type is created. Optionally, a sub-asset type can be defined for assets that have a dependent child asset.

The categoryId must reference an existing asset category on the same event.

Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Request Body

FieldTypeRequiredDescription
namestringRequiredInternal name for the asset type. Must not be empty.
labelstringRequiredDisplay label shown in the UI. Must not be empty.
iconstringRequiredIcon identifier for the asset type.
categoryIdGuidRequiredID of the asset category this type belongs to. Must exist on the event.
hasSubAssetboolRequiredSet to `true` if this asset type has a sub-asset type. When `true`, `subAsset` is required.
subAssetobject \OptionalConditional
propertiesarrayRequiredList of custom properties for this asset type. Can be empty (`[]`). See **Property Object** below.

Sub-Asset Object

FieldTypeRequiredDescription
labelstringRequiredDisplay label for the sub-asset type.
propertiesarrayRequiredCustom properties for the sub-asset type. Can be empty (`[]`). Same structure as **Property Object**.

Property Object

FieldTypeRequiredDescription
labelstringRequiredDisplay label for this property field. Must not be empty.
isRequiredboolRequiredWhether this property must be filled in when creating an asset.
responseTypestringRequiredInput type for this property. See **Response Types** below.
responseOptionsarrayOptionalRequired (and only allowed) for `Select` and `MultiSelect` types. Must contain at least one option. See **Response Option Object**.

Response Types

ValueDescription
TextSingle-line text input.
RichTextMulti-line rich text input.
NumberNumeric input.
DateDate picker.
DateTimeDate and time picker.
CheckboxBoolean checkbox.
LinkURL input.
FileSingle file upload.
MultiFileMultiple file upload.
SelectSingle-choice dropdown. Requires responseOptions.
MultiSelectMulti-choice dropdown. Requires responseOptions.

Response Option Object

FieldTypeRequiredDescription
labelstringRequiredDisplay label for this option.
typestringRequiredVisual classifier for the option (used by the UI for display differentiation).
valuestringRequiredThe stored value when this option is selected.

Response

201 Created — No response body.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token.
NOT_FOUND404The specified categoryId does not exist on this event.
BAD_REQUEST400Invalid arguments — e.g., empty name/label, invalid responseType, Select/MultiSelect missing options, or non-Select/MultiSelect type provided with options.