Skip to content

feat: add template support to post-page endpoint#201

Open
bendavieshe3 wants to merge 1 commit intomakenotion:mainfrom
bendavieshe3:add-template-support
Open

feat: add template support to post-page endpoint#201
bendavieshe3 wants to merge 1 commit intomakenotion:mainfrom
bendavieshe3:add-template-support

Conversation

@bendavieshe3
Copy link
Copy Markdown

Summary

Adds the template parameter to the Create Page (post-page) endpoint, enabling page creation from templates.

Closes #200

Changes

Added to scripts/notion-openapi.json in the post-page requestBody schema:

"template": {
  "type": "object",
  "description": "Template configuration for the new page...",
  "properties": {
    "type": {
      "type": "string",
      "enum": ["none", "default", "template_id"]
    },
    "template_id": {
      "type": "string"
    }
  }
}

Usage

// Use default template
{ "template": { "type": "default" } }

// Use specific template
{ "template": { "type": "template_id", "template_id": "abc123..." } }

References

Testing

  • npm run build
  • npm test ✅ (132 tests pass)

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 makenotion#200
@zyqxd
Copy link
Copy Markdown

zyqxd commented Feb 25, 2026

any chance for this to be merged soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add template support to post-page (create page from template)

2 participants