From 577353484f29c5ba3f0a9ce7e283365f401221a2 Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Sat, 7 Feb 2026 12:42:03 +1000 Subject: [PATCH] feat: add template support to post-page endpoint Add template parameter to Create Page (post-page) requestBody schema, enabling page creation from templates. Supports: - template.type: 'none' | 'default' | 'template_id' - template.template_id: ID of specific template to use Refs: Notion API docs on creating pages from templates https://developers.notion.com/docs/creating-pages-from-templates Closes #200 --- scripts/notion-openapi.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/notion-openapi.json b/scripts/notion-openapi.json index 18669f22..837ea168 100644 --- a/scripts/notion-openapi.json +++ b/scripts/notion-openapi.json @@ -1255,6 +1255,21 @@ "type": "string", "description": "The cover image of the new page, represented as a [file object](https://developers.notion.com/reference/file-object).", "format": "json" + }, + "template": { + "type": "object", + "description": "Template configuration for the new page. Use type 'default' to apply the data source's default template, or 'template_id' with a specific template ID. When using a template, 'children' cannot be specified.", + "properties": { + "type": { + "type": "string", + "enum": ["none", "default", "template_id"], + "description": "The template type. 'none' (default) creates a blank page, 'default' uses the data source's default template, 'template_id' uses a specific template." + }, + "template_id": { + "type": "string", + "description": "The ID of the template to use. Required when type is 'template_id'. Can be obtained from List data source templates endpoint or copied from template URL." + } + } } } }