spoolman_upsert_field
Add or update custom fields for vendor, filament, or spool entities to store additional tracking data.
Instructions
Add or update a custom extra field for a given entity type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The field key (used as identifier) | |
| name | No | Display name for the field | |
| unit | No | Unit of measurement (e.g. mm, g) | |
| order | Yes | Display order | |
| choices | No | Available choices (only for field_type='choice') | |
| field_type | Yes | Data type of the field | |
| entity_type | Yes | The entity type: 'vendor', 'filament', or 'spool' | |
| default_value | No | Default value for the field |