Actions252
- Api Keys Actions
- Attachments Actions
- Blocklists Actions
- Calendar Channel Event Associations Actions
- Find Many Calendar Channel Event Associations
- Create One Calendar Channel Event Association
- Create Many Calendar Channel Event Associations
- Find One Calendar Channel Event Association
- Delete One Calendar Channel Event Association
- Update One Calendar Channel Event Association
- Find Calendar Channel Event Association Duplicates
- Companies Actions
- Calendar Channels Actions
- Calendar Event Participants Actions
- Calendar Events Actions
- Connected Accounts Actions
- Favorite Folders Actions
- Favorites Actions
- Message Channel Message Associations Actions
- Find Many Message Channel Message Associations
- Create One Message Channel Message Association
- Create Many Message Channel Message Associations
- Find One Message Channel Message Association
- Delete One Message Channel Message Association
- Update One Message Channel Message Association
- Find Message Channel Message Association Duplicates
- Message Channels Actions
- Message Folders Actions
- View Fields Actions
- Message Participants Actions
- Messages Actions
- Message Threads Actions
- Notes Actions
- Note Targets Actions
- Opportunities Actions
- People Actions
- Tasks Actions
- Task Targets Actions
- Timeline Activities Actions
- View Filter Groups Actions
- View Filters Actions
- View Groups Actions
- Views Actions
- View Sorts Actions
- Webhooks Actions
- Workflow Automated Triggers Actions
- Workflow Runs Actions
- Workflows Actions
- Workflow Versions Actions
- Workspace Members Actions
Overview
This node integrates with the Twenty API to create multiple attachments in bulk. It is designed to send a batch of attachment objects to the API, which then processes and stores them accordingly. This operation is useful when you need to upload or register many attachments at once, such as importing files or metadata related to projects, posts, or other entities managed by the Twenty platform.
Practical examples include:
- Bulk uploading images or documents associated with user profiles or articles.
- Creating multiple resource attachments in one API call to optimize performance and reduce the number of requests.
- Automating the import of external data sets that include attachments.
Properties
| Name | Meaning |
|---|---|
| Depth | Determines how much nested related object information is included in the response: - 0: Only the primary attachment objects. - 1: Primary objects plus their directly related objects. - 2: Includes related objects of those related objects as well. |
| Body | JSON array representing the attachments to create. Each item should be an attachment object, for example { "name": "Attachment name" }. This property accepts raw JSON input describing the attachments to be created. |
Output
The node outputs JSON data representing the created attachments. The structure includes the details of each attachment as returned by the API, potentially including nested related objects depending on the selected depth level. The output does not explicitly mention binary data handling, so it is assumed to be purely JSON metadata about the attachments.
Dependencies
- Requires an API key credential for authenticating with the Twenty API.
- The base URL for the API is configured via credentials.
- The node uses standard HTTP headers for JSON content negotiation (
AcceptandContent-Typeset toapplication/json).
Troubleshooting
- Invalid JSON in Body: If the JSON provided in the Body property is malformed, the node will fail. Ensure the JSON syntax is correct before execution.
- Authentication Errors: Missing or invalid API credentials will cause authentication failures. Verify that the API key or token is correctly configured in the node credentials.
- API Limits or Quotas: Sending very large batches might hit API rate limits or payload size restrictions. Consider splitting large batches into smaller chunks.
- Depth Parameter Misuse: Setting an unsupported depth value may result in unexpected responses or errors. Use only 0, 1, or 2 as specified.
Links and References
- Twenty API Documentation (Assumed official API docs for further details on attachments and related objects)
- n8n Documentation on Creating Custom Nodes