Update Page

Updates page properties. Cannot change parent. Use append_block_children for content.

Usage #

// Import the typed helper
import { updatePage } from "@hotglue/sdk/notion";
const result = await client.execute({
...updatePage({
page_id: string,
properties: object,
icon: object,
// ...
}),
userId: "user_123",
});
// result is typed as UpdatePageOutput
const result = await client.execute({
integration: "notion",
tool: "update_page",
userId: "user_123",
input: {
page_id: string,
properties: object,
icon: object,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["notion"],
userId: "user_123",
}),
});
await agent.generate("run the Update Page tool");

Required Permissions #

update_content

Input Schema #

page_id string required

The ID of the page to update

properties object

Properties to update. Keys must match database schema for database pages.

icon object

New page icon

cover object

New page cover image

archived bool

Set to true to archive (trash) the page

This tool calls: #

PATCH https://api.notion.com/v1/pages/{page_id}