# Document Template API Coverage

Document template endpoints are documented by NinjaOne but not yet surfaced in the n8n node.
Use this checklist when implementing template CRUD support.

| Endpoint | Description | Gap Summary | Planned Validation |
| --- | --- | --- | --- |
| `POST /v2/document-templates/{documentTemplateId}/archive` | Archive a single template. | Archive operation missing. | Add jest assertions verifying path params and POST payload. |
| `POST /v2/document-templates/archive` | Archive multiple templates. | Bulk archive absent. | Add data-driven tests for array payloads. |
| `GET /v2/document-templates` | List templates with optional field selection. | Listing endpoint missing. | Add tests validating query params (fields, pagination). |
| `POST /v2/document-templates` | Create a template. | Creation not exposed. | Add tests confirming body schema mirrors API spec. |
| `GET /v2/document-templates/{documentTemplateId}` | Retrieve a template. | No get-by-id operation. | Add tests ensuring ID is required. |
| `PUT /v2/document-templates/{documentTemplateId}` | Update a template. | Update not implemented. | Add tests covering partial updates. |
| `DELETE /v2/document-templates/{documentTemplateId}` | Delete a template. | Deletion missing. | Add tests checking HTTP verb and path resolution. |
| `POST /v2/document-templates/{documentTemplateId}/restore` | Restore a template. | Restore endpoint absent. | Add tests verifying request body defaults. |
| `POST /v2/document-templates/restore` | Bulk restore templates. | No bulk restore handler. | Add tests for array payload mapping. |

Document these implementations in `nodes/NinjaOne/operations` and extend the future `document-template` test suite once work begins.
