> ## Documentation Index
> Fetch the complete documentation index at: https://superdoc-caio-pizzol-docs-ai-core-preset.mintlify.site/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 from a source package, 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     |
