avito_update_stock
Update the available quantity for a single Avito listing. Set quantity to 0 to hide the buy with delivery button; requires confirm_write=true to submit.
Instructions
Set the available quantity of ONE listing (PUT /stock-management/1/stocks). WRITE.
Requires confirm_write=true. quantity 0 hides the "buy with delivery" button.
Args: item_id: Avito listing id. quantity: units available (0..999999). confirm_write: must be true to send. Returns JSON: {"ok": true, "data": {"stocks": [{"item_id", "success", "errors"}]}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| quantity | Yes | ||
| confirm_write | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |