Actions13
Overview
This node integrates with a PDF Generator API to manage PDF templates and perform various PDF-related operations. Specifically, for the Template - Delete operation, it allows users to delete an existing PDF template by specifying its ID. This is useful in scenarios where outdated or unused templates need to be removed from the system to keep the workspace organized.
Practical example:
- You have multiple PDF templates for invoices, reports, or contracts. When a template becomes obsolete or incorrect, you can use this node operation to delete it programmatically as part of your workflow automation.
Properties
Name | Meaning |
---|---|
Template | Select the template to delete. You can choose from a list of available templates or enter the template ID directly (must be a numeric string). |
The "Template" property supports two modes:
- From List: Search and select a template from the available templates.
- By ID: Enter the numeric template ID manually.
Output
The output JSON object after a successful delete operation contains:
success
: Boolean indicating if the deletion was successful (true
).message
: A confirmation message string, e.g.,"Template deleted successfully"
.templateId
: The ID of the template that was deleted.
Example output JSON:
{
"success": true,
"message": "Template deleted successfully",
"templateId": "12345"
}
No binary data is produced by this operation.
Dependencies
- Requires an active connection to the PDF Generator API service.
- Requires an API key credential configured in n8n for authentication with the PDF Generator API.
- The base URL defaults to
https://us1.pdfgeneratorapi.com/api/v4
unless overridden in credentials.
Troubleshooting
Common issues:
- Providing an invalid or non-numeric template ID will cause validation errors.
- Attempting to delete a template that does not exist or has already been deleted may result in an error from the API.
- Missing or invalid API credentials will prevent the node from authenticating and performing the delete operation.
Error messages and resolutions:
"Template ID must be a number"
: Ensure the template ID is a numeric string when entering manually.- API errors related to authorization: Verify that the API key credential is correctly set up and has sufficient permissions.
"The operation "delete" is not supported for resource "template"
: This indicates a misconfiguration; ensure the resource is set to "template" and operation to "delete".
Links and References
- PDF Generator API Documentation (general reference for API endpoints and usage)
- n8n Documentation on Creating Custom Nodes (for understanding node development concepts)