AvantGuard - NinjaOne icon

AvantGuard - NinjaOne

AvantGuard - NinjaOne

Actions159

Overview

This node operation restores a previously deleted or archived Document Template within the AvantGuard NinjaOne system. It is useful in scenarios where a user needs to recover a Document Template that was removed by mistake or needs to be reused without recreating it from scratch. For example, if an IT administrator accidentally deletes a template used for standardizing documents across the organization, this operation can restore it quickly.

Properties

Name Meaning
Document Template Id The unique numeric identifier of the Document Template to restore. This is required to specify which template should be restored.

Output

The output JSON will typically contain information about the restored Document Template, such as its ID, status, and any metadata returned by the API confirming the restoration. The exact structure depends on the API response but generally confirms success and provides details of the restored template.

If the node supports binary data output, it would relate to any files or attachments associated with the Document Template, but this is not indicated in the provided code snippet.

Dependencies

  • Requires an API key credential for authenticating with the AvantGuard NinjaOne service.
  • Depends on the AvantGuard NinjaOne API being accessible via the configured base URL.
  • The node uses the @avantguardllc/n8n-openapi-node package and an OpenAPI specification (openapi.json) to build its properties and handle requests.

Troubleshooting

  • Common Issues:

    • Providing an invalid or non-existent Document Template Id will likely result in an error indicating the template cannot be found.
    • Network connectivity issues or incorrect API base URL configuration may cause request failures.
    • Missing or invalid API authentication credentials will prevent successful execution.
  • Error Messages:

    • "Template not found" or similar indicates the specified Document Template Id does not exist or is already active.
    • Authentication errors suggest checking the API key or token validity.
    • Timeout or connection errors require verifying network access and endpoint availability.

Links and References

  • AvantGuard NinjaOne API documentation (refer to official vendor resources for detailed API endpoints and usage).
  • n8n documentation on creating and using custom nodes with OpenAPI specifications.

Discussion