Assets
Create & Update Asset
Create Asset
The only properties you need to create an asset is the item_id
, location_id
, and layout_id
, which identify the item being converted to the asset and the location and layout where it will be placed. However, we recommend adding some more properties to the asset.
Update Asset
Most of the asset properties can be updated, including
Likewise, linked documents can be added or removed as follows
The objects containing id
in add
will be updated and the ones without the id
will be created. The document ids pased in remove
will be deleted. Overall, an update request may look as follows
Bulk Serialize Asset Items
Assets can be bulk created and serialized against items that are marked as assets. For instance, if you have 10 asset items at a location A
on a layout B
, and you want to generate serial numbers for two of them and move them to layout C
, the request will look like this
If the source and destination layouts are same, destination layout can be omitted from the body.
If the assets are being procured from external sources, and any existing item quantities are not to be turned into assets, source layout ID can be omitted. In this case, the user must pass an options object containing check_inventory
set to false. Destination layout, however, is required in this case.