Update an item or folder
sortly_update_itemChange fields on an existing item or folder — e.g. set a new quantity after a stock count, rename it, or relocate a folder via parent_id. Only the fields you pass change; pass null to clear a nullable field. Sending tags or custom_attribute_values replaces them. WRITE. Sortly: PUT /api/v1/items/{item_id} (returns 204).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name. | |
| tags | No | Tag names, e.g. ["furniture", "used"]. | |
| notes | No | Free-text notes. | |
| price | No | Unit price. | |
| item_id | Yes | The item's or folder's numeric id. | |
| quantity | No | How many you have. | |
| label_url | No | Value encoded in the primary QR code / barcode. | |
| parent_id | No | Move into this folder (null = root). To move PART of an item's stock use sortly_move_item. | |
| photo_ids | No | Ids of photos already in the account to attach. | |
| min_quantity | No | Minimum level; a Quantity alert can fire when stock reaches it. | |
| label_url_type | No | Symbology of the primary code. | |
| label_url_extra | No | Value encoded in the secondary code. | |
| measured_quantity | No | New measured amount for a measured item. | |
| label_url_extra_type | No | Symbology of the secondary code. | |
| custom_attribute_values | No | Custom field values. Look up ids with sortly_list_custom_fields first. |