> ## 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](../index)

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 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------- | ------------- | ------- | ------- |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><a href="/document-api/reference/templates/apply"><code>templates.apply</code></a></span> | `templates.apply` | Yes     | `conditional` | No      | Yes     |
