Asset Vendor Relationships
Link assets to vendors, or remove those links.
An asset can belong to at most one vendor. You can also set the vendor when creating an asset with vendorUniqueId on POST /external/smart-inventory/asset/new, or change it on PATCH .../edit using parentVendor.
Link asset to vendor
No request body. Both {asset} and {vendor} are record uniqueId values.
Response
204 No Content on success.
Unlink asset from vendor
The asset must currently be linked to the given vendor.
Response
204 No Content on success.
Example
# Link asset to vendor
curl -X POST https://api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/vendor/6a2ab13673183/link \
-H "X-API-Key: tvw_sk_live_your_key_here"
# Unlink
curl -X DELETE https://api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/vendor/6a2ab13673183/unlink \
-H "X-API-Key: tvw_sk_live_your_key_here"
Use GET /external/smart-inventory/asset/{asset}/item to verify the linked vendor.