instantiate_type_template
Create a real content type from a Paperboy CMS type template; reapply it to an existing type, rename it, or add referenced block types.
Instructions
Materialise a type template into a real content type. Default: creates the type under the template's own name. If that type already exists the call is REFUSED (409) — pass updateExisting: true to re-apply the template onto the existing type (kind must match; existing content is not migrated), or asName: "OtherName" to create a type with a DIFFERENT name (must match ^[A-Z][a-zA-Z0-9]*$, e.g. "CaseStudy"). Pass withBlocks: true to ALSO create the block types the template's content areas reference (recursively; existing types are left untouched) — recommended for built-ins like FaqPage so the set works out of the box.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name | |
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| asName | No | Create the type under this name instead of the template's | |
| withBlocks | No | Also create the block types this template's content areas allow-list (default false) | |
| updateExisting | No | Overwrite the existing type of the same name from the template (default false) |