Docs

Update Resource Type

PUT /resourceTypes/{assetTypeId}

PUT/resourceTypes/{assetTypeId}

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.

Replaces the configuration of an existing asset type. The full asset type definition must be sent — this is not a partial update.

Property diffing: The API compares incoming properties against existing ones using id.

  • Properties with a matching id are updated in place.
  • Properties with a null or empty id are treated as new and created.
  • Existing properties whose id is absent from the request are deleted.

The same diffing logic applies to sub-asset properties when hasSubAsset is true.

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

Path Parameters

FieldTypeRequiredDescription
assetTypeIdGuidRequiredThe ID of the asset type to update.

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. Can be changed to move the type to a different category.
hasSubAssetboolRequiredSet to `true` if this asset type has a sub-asset type. When `true`, `subAsset` is required.
subAssetobject \OptionalConditional
propertiesarrayRequiredFull list of properties. Existing properties must include their `id`. Omitting an existing property's `id` will delete it. See **Property Object** below.

Sub-Asset Object

FieldTypeRequiredDescription
labelstringRequiredDisplay label for the sub-asset type.
propertiesarrayRequiredFull list of sub-asset properties. Same diffing rules apply. Same structure as **Property Object**.

Property Object

FieldTypeRequiredDescription
idGuid \Optional
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. 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

200 OK — No response body.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token.
NOT_FOUND404Asset type not found, or the specified categoryId does not exist on this event.
BAD_REQUEST400Invalid arguments — e.g., empty name/label, invalid responseType, or responseOptions constraint violations.