ym_stocks_update
Update product stock levels in Yandex Market by submitting a JSON array with SKU, warehouse ID, and item counts with timestamps. Optionally specify campaign ID.
Instructions
Update product stocks. Args: stocks_json — JSON array of {sku, warehouseId, items: [{count, type, updatedAt}]}.
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": {
"stocks_json": "<stocks_json>"
},
"name": "ym_stocks_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stocks_json | Yes | ||
| campaign_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |