Inventory
Update a Inventory Item
Update the Inventory Item with the given ID. Pass hardware_id to link the item to a Monitoring device. Pass unlink_device: true to clear the current link — sending hardware_id=0 alone leaves the existing link unchanged.
put/admin/inventory/items/{id}
Request
- Base URL: https://demo.splynx.com/api/2.0
- URL: https://demo.splynx.com/api/2.0/admin/inventory/items/{id}
- Auth: HTTP basic
Path parameters
idnumber double required
Example:1
The ID of the desired Inventory Item.
Request body
Example request
{
"notes": "note",
"barcode": "barcode",
"serial_number": "number",
"supplier_invoices_item_id": 1,
"status": "stock",
"mark": "new",
"customer_id": 1,
"admin_id": 1,
"service_id": 1,
"invoice_id": 1,
"cost_price": 1,
"transaction_id": 1,
"product_id": 1,
"stock_id": 1,
"filename_original": "test.png",
"filename": "6bcee1fd1062637b",
"file_link": "/admin/download--view?module=inventory_items&id=21&ver=6bcee1fd1062637",
"network_site_id": 1,
"linked_hardware": {
"id": 1,
"title": "AP-Tower-1",
"type": 1,
"ip": "192.168.1.100"
},
"delete_photo": true,
"hardware_id": 1,
"unlink_device": true
}Changes
No recorded changes to this operation across all 1 revision of this API.