asset-types
Asset types - templates that define the properties and signals of an asset.
List asset types
Returns all asset types, optionally filtered by name and/or by the presence of a given property name.
Create or update an asset type
Creates a new asset type when the body has no id, otherwise updates the existing one and re-links its signal templates. Validates properties and unique asset-type names, and returns the stored asset type. Responds 409 if another asset type of the tenant already carries the name.
Check whether an asset type name is free
Returns true when no other asset type of the tenant carries this exact name (case-sensitive), false otherwise. excludeId names the asset type being edited, so it does not count against its own name. Backs a live check while typing, ahead of the 409 updateAssetType answers on an actually taken name.
Get a page of asset types
Returns one page of the asset types for the administration's table (HET-2211), optionally filtered by a part of the name and of a property name. Sortable by `name`, the default - any other field is answered with 400; equal names keep the order of the ids. GET /asset-types stays the whole list for the selections that pick one.
Get an asset type by id
Returns the asset type with the given id, or responds 404 if it does not exist.
Delete an asset type
Deletes the asset type with the given id, responding 404 if it does not exist.