Actions60
- User Actions
- Teams Actions
- Custom Fields Actions
- Tickets Actions
- Deals Actions
- Webhooks Actions
- Contacts Actions
- Companies Actions
- Bussiness Types Actions
- Tags Actions
- Deal Phases Actions
- Invoices Actions
- Subscriptions Actions
- Products Actions
- Projects Actions
- Tasks Actions
- Files Actions
Overview
This node integrates with the Teamleader API to perform various operations on different resources such as users, teams, tickets, deals, contacts, companies, files, and more. Specifically for the Files resource with the Delete operation, the node allows you to delete a file from your Teamleader account by specifying its unique ID.
Common scenarios where this node is beneficial include automating file management tasks within Teamleader, such as cleaning up obsolete or unwanted files programmatically without manual intervention. For example, after processing or archiving files elsewhere, you can automatically remove them from Teamleader to keep your storage organized.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the file to delete. This is required to specify which file should be removed. |
Output
The output of the delete operation returns a JSON object indicating the result of the deletion request. Typically, it contains confirmation data or an empty response if the deletion was successful. If the API returns multiple items (in other operations), they are returned as an array; however, for delete, usually a single confirmation or status message is returned.
No binary data is output by this operation.
Dependencies
- Requires an OAuth2 API credential configured in n8n to authenticate requests against the Teamleader API.
- The node sends HTTP POST requests to the Teamleader API endpoint
https://api.focus.teamleader.euwith the appropriate operation path. - Proper permissions on the Teamleader account to delete files are necessary.
Troubleshooting
Common issues:
- Providing an invalid or non-existent file ID will cause the API to return an error.
- Missing or incorrect API credentials will lead to authentication failures.
- Network connectivity issues may prevent the node from reaching the Teamleader API.
Error messages:
"No data got returned": Indicates that the API call succeeded but no data was returned. Verify the file ID and API endpoint.- Authentication errors: Check that the OAuth2 credentials are correctly set up and have not expired.
- API errors related to permissions: Ensure the authenticated user has rights to delete files.
To resolve these, verify the input parameters, ensure valid credentials, and check API permissions.