Create Type

Creates a new type.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired
propertyConfigsmap from strings to objectsRequired
descriptionstringOptional
iconNamestringOptional
workspacestringOptional

The workspace in which to create the asset type. If not provided, the asset type will be created in the default workspace for the user’s organization, if the default workspace for the organization is configured.

Response

This endpoint returns an object.
ridstring
namestring
propertyConfigsmap from strings to objects
createdAtdatetime
descriptionstringOptional
iconNamestringOptional

The name of the icon to display for the type. This name maps to a Lucide icon in the frontend.