Create an item or folder
sortly_create_itemCreate a trackable item (type item) or a folder (type folder), optionally inside a folder via parent_id, with quantity, price, tags, custom fields, barcodes and a measured quantity. WRITE. Sortly: POST /api/v1/items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name, max 190 characters. | |
| tags | No | Tag names, e.g. ["furniture", "used"]. | |
| type | Yes | item = trackable stock; folder = a container. | |
| notes | No | Free-text notes. | |
| price | No | Unit price. | |
| quantity | No | How many you have. | |
| label_url | No | Value encoded in the primary QR code / barcode. | |
| parent_id | No | Folder to create it in. Omit/null = root. | |
| 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 | For items measured in something other than units. | |
| 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. |