TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

This node operation deletes a single attachment identified by its unique ID. It is useful in scenarios where you need to remove outdated, incorrect, or unwanted attachments from a system or service that manages files or documents. For example, if an attachment was uploaded by mistake or is no longer relevant, this operation allows you to clean up by deleting it.

Properties

Name Meaning
Id The unique identifier of the attachment to delete. This is required to specify which attachment should be removed.

Output

The output JSON typically contains information about the result of the deletion operation. This may include confirmation of successful deletion or details about any errors encountered. Since this operation deletes data, no binary output is expected.

Dependencies

  • Requires an API key credential for authentication with the external service managing attachments.
  • The node uses a base URL and headers configured via credentials to communicate with the API.
  • The underlying implementation depends on an OpenAPI specification loaded from a bundled JSON file, which defines the API endpoints and request structure.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent attachment ID will likely result in an error indicating the attachment could not be found.
    • Missing or incorrect API credentials will cause authentication failures.
    • Network connectivity problems can prevent the node from reaching the API endpoint.
  • Error messages and resolutions:

    • "Attachment not found": Verify the ID is correct and the attachment exists.
    • "Authentication failed": Check that the API key or token is valid and properly configured.
    • Timeout or network errors: Ensure stable internet connection and that the API endpoint is reachable.

Links and References

  • Refer to the external API documentation for detailed information on attachment management and deletion endpoints.
  • Consult n8n documentation on how to configure API credentials and use HTTP request nodes for custom integrations.

Discussion