Actions100
- Activity Logs Actions
- Articles Actions
- Asset Layouts Actions
- Asset Passwords Actions
- Assets Actions
- Get Assets
- Get Companies Company Id Assets
- Post Companies Company Id Assets
- Get Companies Company Id Assets Id
- Put Companies Company Id Assets Id
- Delete Companies Company Id Assets Id
- Put Companies Company Id Assets Id Archive
- Put Companies Company Id Assets Id Unarchive
- Put Companies Company Id Assets Id Move Layout
- Cards Actions
- Companies Actions
- Expirations Actions
- Exports Actions
- Folders Actions
- IP Addresses Actions
- Lists Actions
- Magic Dash Actions
- Matchers Actions
- Networks Actions
- Password Folders Actions
- Procedure Tasks Actions
- Procedures Actions
- Public Photos Actions
- Rack Storage Items Actions
- Rack Storages Actions
- Relations Actions
- Uploads Actions
Overview
This node operation deletes a specific Asset associated with a given Company by their respective identifiers. It is useful in scenarios where you need to programmatically remove assets tied to companies, such as cleaning up outdated or incorrect asset records in a system that manages company-related data.
For example, if a company has sold or disposed of an asset, this node can be used to delete that asset from the database via an API call, ensuring the asset list remains accurate and up-to-date.
Properties
| Name | Meaning |
|---|---|
| Id | The identifier of the Asset to be deleted. |
| Company Id | The identifier of the parent Company to which the Asset belongs. |
Output
The node outputs JSON data representing the result of the delete operation. Typically, this will include confirmation of deletion or status information returned by the API. There is no indication that binary data is output by this node.
Dependencies
- Requires an API key credential for authentication to the AvantGuard service.
- The node uses the base URL provided in the credentials to make HTTP requests.
- Depends on the
@avantguardllc/n8n-openapi-nodepackage and an OpenAPI specification (openapi.json) bundled within the node for request building.
Troubleshooting
Common issues:
- Invalid or missing Asset or Company IDs will likely cause the API to return errors.
- Authentication failures due to incorrect or expired API keys.
- Network connectivity problems preventing access to the API endpoint.
Error messages:
- "Asset not found" or similar indicates the specified Asset ID does not exist under the given Company.
- "Unauthorized" or "Authentication failed" suggests issues with the API key credential.
- Timeout or connection errors indicate network or service availability problems.
To resolve these, verify the correctness of input IDs, ensure valid API credentials are configured, and check network connectivity.
Links and References
- AvantGuard API Documentation (hypothetical link)
- n8n documentation on creating custom nodes