> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superdoc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates operations

> Templates operation reference from the canonical Document API contract.

[Back to full reference](https://docs.superdoc.dev/document-api/reference/index.md)

Apply detected DOCX template/substrate (styles, numbering, settings, theme, font table, web settings, custom XML) from a source package onto the current document while preserving body content.

| Operation | Member path | Mutates | Idempotency | Tracked | Dry run |
| - | - | - | - | - | - |
| [`templates.apply`](https://docs.superdoc.dev/document-api/reference/templates/apply) | `templates.apply` | Yes | `conditional` | No | Yes |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.