Create custom field
create_custom_fieldDefine a new custom field for document metadata. Choose its data type carefully, as it cannot be changed after creation.
Instructions
Define a new custom field. The data type cannot be changed afterwards, so pick it deliberately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| data_type | Yes | Field type. 'select' requires extra_data.select_options; 'monetary' stores a currency-prefixed amount; 'documentlink' stores references to other document IDs. | |
| extra_data | No | Type-specific configuration. For 'select': {"select_options": [{"label": "Open"}, {"label": "Paid"}]}. For 'monetary': {"default_currency": "EUR"}. |