# Templates operations

> 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.



1 operations. Names, descriptions, and behavior flags come from the canonical contract.

## Operations

- [`templates.apply`](/document-api/reference/templates/apply) (mutates): Apply detected DOCX template/substrate (styles, numbering, settings, theme, font table, web settings, headers/footers, section defaults) from a source package onto the current document, preserving body content. Scopes are auto-detected from source package evidence.

