upsert_item
Create or fully replace an item and its products, option groups, and options in a merchant’s iFood catalog through an idempotent update.
Instructions
Create or fully replace an item with its products/optionGroups/options (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": {
"merchant_id": "<merchant_id>",
"item": "<item>"
},
"name": "upsert_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The item object (extra iFood fields allowed). | |
| options | No | Option definitions (iFood shape). | |
| products | No | Product definitions (iFood shape). | |
| merchant_id | Yes | Merchant ID | |
| optionGroups | No | Option-group definitions (iFood shape). |