set_item_custom_fields
Replaces all custom fields on an item with the provided key-value set. Use it to fully overwrite item metadata, since fields omitted from the request are removed.
Instructions
Set all custom fields on an item, replacing any existing custom fields entirely. Any custom fields not included in the request body will be removed. Use patch_item_custom_fields instead if you only want to update specific fields without affecting the rest.
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": {
"itemNumber": "<itemNumber>",
"customFields": "<customFields>"
},
"name": "set_item_custom_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemNumber | Yes | The unique item number (SKU) whose custom fields should be replaced. | |
| customFields | Yes | The complete set of custom fields as key-value pairs. This replaces all existing custom fields on the item. |