Update item
update_itemUpdate one item. Other fields can change. If the item already has a barcode, that code is kept even if you pass a different number. barcode_mode is ignored when the item already has a barcode or when a barcode is supplied. If the barcode is empty and you omit barcode_mode, the server assigns the next code when sequential assignment already works (typically Code 128), Cloudlabels EAN-13 is on, or the organization has opted in to its GS1 company prefix. When that assignment is refused (GS1 or existing EAN-13, and Cloudlabels EAN-13 is off), the barcode stays empty, barcodeSource is unchanged, and barcode_note says to pass barcode_mode="none", barcode_mode="cloudlabels_ean13", or a GTIN. barcode_mode="cloudlabels_ean13" generates one EAN-13 for this call only; barcode_mode="none" leaves the cell empty on purpose (barcodeSource none). Do not pass sequential. If the organization has opted in to its GS1 company prefix for this column and the sheet standard is EAN-13, UPC-A, or EAN-8, an empty barcode can reserve the next prefix number before saving. Returns barcode and barcodeSource (supplied, sequential, cloudlabels, gs1_prefix, kept, none, or unchanged). The cell stores the digit body without the check digit. A full prefix is an error and does not fall back to a random code.
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": {
"item_id": "<item_id>",
"fields": "<fields>"
},
"name": "update_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| item_id | Yes | ||
| barcode_mode | No | ||
| sheet_number | No |