set_unit_custom_field
Sets (creates or updates) a custom field on a stock line by unit id. Field names are reused company-wide; new names are created with Unit scope. showInTable shows the field as a column on unit lists. Returns the saved field.
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": {
"unitId": "<unitId>",
"fieldName": "<fieldName>",
"value": "<value>"
},
"name": "set_unit_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| unitId | Yes | ||
| fieldName | Yes | ||
| showInTable | No |