NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

DocumentTemplates → Archive a document template

AI-generated

Summary

Archive a specific document template in NinjaOne by its unique document template ID.

Inputs

  • documentTemplateId (required) — The unique identifier of the document template to archive.
  • options — Optional additional settings including custom JSON body to merge into the request, custom HTTP headers, query-string filters, batching controls, debug flag, pagination configurations, and request timeout in milliseconds.

Output shape

An object containing the API response data from archiving the document template, potentially including debug information if enabled.

The operation makes a POST request to the endpoint /v2/document-templates/{documentTemplateId}/archive. The response structure depends on the NinjaOne API and includes success confirmation or error information. Enabling debug adds request details to the output.

Links

Discussion