Actions21
- Document Actions
- PDF Service Actions
- Template Actions
- Workspace Actions
Template → Validate
AI-generatedOverview
This node validates a PDF template configuration JSON object by sending it to the PDF Generator API's template validation endpoint. It is useful for ensuring that the template configuration is correctly structured and meets the API's requirements before using it to generate PDF documents. For example, users can validate a newly created or updated template configuration to catch errors early and avoid generation failures.
Use Case Examples
- Validate a template configuration JSON to ensure it includes required fields like name, layout, pages array, dataSettings, and editor objects before generating PDFs.
- Check the validity of a template configuration JSON after editing it in an external editor or programmatically modifying it.
Properties
| Name | Meaning |
|---|---|
| Template Configuration JSON | The JSON object representing the template configuration to validate. It must include the template's name, layout, pages array, dataSettings, and editor objects. |
Output
JSON
success- Indicates if the validation was successfulmessage- Validation message or error details returned from the API
Dependencies
- An API key credential for the PDF Generator API is required to authenticate requests.
Troubleshooting
- Ensure the template configuration JSON is valid JSON and includes all required fields: name, layout, pages array, dataSettings, and editor objects.
- If the API returns an error, check the error message for details on what part of the template configuration is invalid.
- Make sure the API credentials are correctly configured and have the necessary permissions to perform template validation.
Links
- PDF Generator API Template Validation - Official documentation for the template validation endpoint of the PDF Generator API.