Update field definition
update_field_defUpdate a custom field definition: rename the label, flip required, replace a select's options, or change a currency field's currencyCode. The TYPE is immutable, because changing it would invalidate every stored value; a different type means a new field (archiving the old one happens in the app). Changing currencyCode relabels existing values without converting them: the numbers stay as entered. Field ids come from get_item_requirements. Requires the manager role. Idempotent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fieldDefId": "<fieldDefId>"
},
"name": "update_field_def"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | New label | |
| options | No | Replacement option list (select/multiselect fields only) | |
| required | No | ||
| fieldDefId | Yes | Field definition id | |
| currencyCode | No | ISO 4217 code (currency fields only), e.g. EUR or CHF. The organization's default currency applies only when a field is created. Relabels existing values, never converts them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Field type: text | number | date | select | multiselect | … | |
| label | No | Field label as the org named it | |
| options | No | Allowed values for selects | |
| required | No | Whether a value is mandatory | |
| fieldDefId | No | Field definition id | |
| currencyCode | No | ISO code of a currency field when it is not CHF (absent = CHF) |