Skip to content

Message: asset.delete

Back to Index

Deletes the asset

Schema

BodyNo fields

Response Type string

During the delete message, these rule hooks are run in the given order:

  1. OnAssetBeforeDeleted
  2. OnAssetDeleted

Example: Delete a Vendor

Delete a Vendor

Send a delete message with the asset GUID to remove an Asset.

Request

POST https://<hantera-hostname>/resources/actors/asset/<ASSET ID>
Authorization: Bearer <YOUR TOKEN>
Content-Type: application/json
[{
"type": "delete"
}]

Response

HTTP/1.1 200 OK
---
{
"paths": [
"resources/actors/asset/<ASSET ID>"
],
"data": {
"delete": "OK"
}
}
Back to Index