Overview
Asset types define the structure and custom fields for inventory items. Each asset type belongs to a container and includes field definitions that specify what data can be captured for items of that type. Asset types support image uploads, serialization settings, and collection-specific field mappings.Create Asset Type
integer
required
ID of the parent container
string
required
Asset type name (e.g., “Electronics”, “Books”, “Collectibles”)
boolean
default:"true"
Whether items of this type are serialized:
true- Each item is unique with quantity=1 (default)false- Items can have variable quantities
string
required
JSON-encoded array of custom field definition objectsExample:
file
Optional image file for the asset type icon/thumbnail
object
Get Asset Type
integer
required
ID of the asset type to retrieve
Update Asset Type
integer
required
ID of the asset type to update
string
required
Updated asset type name
string
required
JSON-encoded array of updated field definitions
file
New image file to upload (replaces existing)
boolean
default:"false"
Set to
true to remove the current image without uploading a new oneUpdate Collection Fields
integer
required
ID of the asset type
string
Field ID that tracks “possessed” quantity (set to
null to clear)string
Field ID that tracks “desired” quantity (set to
null to clear)Delete Asset Type
- First deletes all inventory items of this type (
DELETE /asset-types/{assetTypeId}/assets) - Then deletes the asset type itself
integer
required
ID of the asset type to delete
Error Responses
404 Not Found- Asset type doesn’t exist or was already deleted401 Unauthorized- Invalid or expired authentication token
Field Definition Types
When creating or updating asset types, the following field types are available:Text Fields
Textarea Fields
Number Fields
Date Fields
Boolean Fields
Select Fields (Single Choice)
Multi-Select Fields
Dynamic Select (DataList)
Best Practices
Field ID Naming
Use consistent, descriptive IDs:- Use lowercase with underscores:
serial_number,purchase_date - Avoid special characters except underscores
- Keep IDs stable - changing them breaks existing item data
Serialization Strategy
UseisSerialized: true for:
- Unique items (electronics, collectibles, art)
- Items with serial numbers or unique identifiers
- Items where each instance is distinct
isSerialized: false for:
- Bulk consumables (screws, cables, office supplies)
- Fungible items where individual instances don’t matter
- Items tracked by total quantity rather than individual units
Collection Fields
For collection management:- Create number fields for possession and desire tracking
- Use the Update Collection Fields endpoint to map them
- The frontend can then show “5/10” style progress indicators
Error Handling
All endpoints return standard HTTP status codes:200 OK- Request successful201 Created- Asset type created successfully204 No Content- Deletion successful400 Bad Request- Invalid field definitions or malformed JSON401 Unauthorized- Authentication required404 Not Found- Asset type not found500 Internal Server Error- Server error
