set_inventory_item_custom_field
Sets (creates or updates) a custom field value on an inventory item. Provide the inventory item id, the field name (an existing field with that name is reused, otherwise a new field is created for the company), and the value. showInTable is a per-field, company-wide setting: true shows the field as a column in the inventory table for every item, false hides it. 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": {
"inventoryItemId": "<inventoryItemId>",
"fieldName": "<fieldName>",
"value": "<value>"
},
"name": "set_inventory_item_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| fieldName | Yes | ||
| showInTable | No | ||
| inventoryItemId | Yes |