AgentSkillsCN

notion-page

通过 Notion API 更新 Notion 页面及其属性。适用于修改 Notion 页面属性、更新页面内容、归档/取消归档页面,或更改页面图标与封面时使用。当用户提及更新 Notion 页面、修改 Notion 属性、发布页面更新,或管理 Notion 页面元数据时触发。

SKILL.md
--- frontmatter
name: notion-page
description: >
  Update Notion pages and their properties via the Notion API. Use this skill when
  modifying Notion page properties, updating page content, archiving/unarchiving pages,
  or changing page icons and covers. Trigger when the user mentions updating Notion pages,
  modifying Notion properties, publishing page updates, or managing Notion page metadata.

Notion API - Update Page

Update Notion page properties, icons, covers, and archive status via the Notion API.

When to Use

  • Updating page properties (title, status, dates, selects, etc.)
  • Changing page icon or cover image
  • Archiving or restoring pages
  • Publishing structured updates to Notion databases

Authentication

Use a Bearer token in the Authorization header:

code
Authorization: Bearer <notion_token>

Also include the Notion API version header:

code
Notion-Version: 2022-06-28

Key Endpoint

PATCH /pages/{page_id} — Update a page's properties and metadata.

Parameters

ParameterLocationRequiredDescription
page_idpathYesThe page ID (UUID format, hyphens optional)

Request Body

All fields are optional — include only what you want to update:

  • properties — Object mapping property names to new values. Property types include: title, rich_text, number, select, multi_select, date, url, email, phone_number, checkbox, relation, status
  • icon — Page icon (emoji type with emoji field, or external type with url field)
  • cover — Cover image (external type with url field)
  • archived — Boolean to archive (true) or restore (false)

Property Value Formats

  • Title: {"title": [{"text": {"content": "My Title"}}]}
  • Rich text: {"rich_text": [{"text": {"content": "Some text"}}]}
  • Select: {"select": {"name": "Option Name"}}
  • Date: {"date": {"start": "2025-01-15", "end": "2025-01-20"}}
  • URL: {"url": "https://example.com"}
  • Checkbox: {"checkbox": true}

API Reference

For complete schema details including all property types, response format, and error codes, read references/openapi.yml.