Set Item Classification
set_item_classificationPut items into categories, a brand and an item group (up to 200 items per call, by id or SKU). categoryIds replaces each item's categories (an empty list clears them); addCategoryIds / removeCategoryIds adjust them instead. brandId / groupId set the brand and group (clearBrand / clearGroup remove them); omitted parts keep each item's current value. Ids come from list_catalog_taxonomy. The preview shows each item's before→after and skips items already classified that way. A change that moves an item into or out of a discount's categories or brand updates its discounted price, as the item form does. A client-pinned credential classifies only its own items.
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": {
"input": "<input>"
},
"name": "set_item_classification"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The items and the classification to apply. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| itemsUpdated | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |