NinjaOne icon

NinjaOne

Consume NinjaOne API

Actions158

Document Templates → Restore Document Template

AI-generated

Overview

This node interacts with the NinjaOne API to manage Document Templates, specifically allowing users to restore a previously deleted or archived document template. It is useful in scenarios where a document template was removed but needs to be recovered without recreating it from scratch. For example, if an IT administrator accidentally deletes a standard operating procedure template, this node 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 to recover.

Output

The node outputs JSON data representing the response from the NinjaOne API after attempting to restore the document template. This typically includes details about the restored template such as its ID, name, status, and other metadata confirming the restoration.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the NinjaOne API.
  • Needs an API authentication token configured via OAuth2 credentials within n8n.
  • The node uses the NinjaOne OAuth2 credential for authenticated requests.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Document Template Id will likely result in an error from the API indicating the template cannot be found.
    • Missing or expired API authentication tokens will cause authentication failures.
    • Network connectivity problems may prevent the node from reaching the NinjaOne API.
  • Error messages:

    • "No binary data exists on item!" or similar errors are not relevant here since this operation does not handle binary data.
    • API errors related to permissions or invalid IDs should be resolved by verifying the Document Template Id and ensuring the API credentials have sufficient rights.

Links and References

  • NinjaOne API Documentation (general reference for API endpoints)
  • n8n OAuth2 Credential Setup Guide (for configuring API authentication)

Discussion