AvantGuard - WebhookSite icon

AvantGuard - WebhookSite

AvantGuard - WebhookSite

Actions100

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-node package 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

Discussion