update_item_name
Rename an inventory item while preserving price and other fields. Uses optimistic locking: refuses to update unless the current name matches the expected name.
Instructions
Modifies merchant data. Rename an inventory item (price/other fields preserved).
Optimistic lock: refuses unless the item's current name equals expected_current_name. Bounds: non-empty, <= 127 characters. dry_run=True previews the POST body (still performs one read) and never writes. Requires INVENTORY_R and INVENTORY_W.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| dry_run | No | ||
| item_id | Yes | ||
| new_name | Yes | ||
| expected_current_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||