int-notion-page-update Function — Database on aerostack
DatabaseEdge function int-notion-page-update Updates an existing Notion page's properties — change status, tags, dates, or any database field. Supports archiving pages.. Written in aerostack and deployed on Cloudflare Workers — zero cold starts, globally distributed. Mount it via your Aerostack workspace to call it from any AI agent.
npx aerostack add navin/int-notion-page-updateUse with AI Assistants
MCPConnect Claude, Cursor, or any MCP-compatible client — then call this function by slug
① Add MCP Server
Add this once — access all Aerostack functions from your AI tool.
{
"mcpServers": {
"aerostack": {
"url": "https://mcp.aerostack.dev",
"type": "http"
}
}
}② Call this function
Ask your AI to use the call_function tool with this slug:
call_function({
slug: "int-notion-page-update",
args: {}
})int-notion-page-update — Update an existing Notion page
Updates properties on an existing Notion page — change status, tags, dates, assignees, or archive the page.
Setup
Environment Variables
| Variable | Required | Description |
|---|---|---|
NOTION_API_KEY | Yes | Notion integration token — get yours at https://www.notion.so/my-integrations |
How to set up:
- Go to notion.so/my-integrations and create an integration
- Copy the Internal Integration Secret (starts with
ntn_orsecret_) - In Notion, share your database with the integration (click ... → Connections → your integration)
- In your Aerostack dashboard, go to Project → Secrets → Add secret
- Key:
NOTION_API_KEY— Value: your integration token
API
POST /api/int-notion-page-update
Request body
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pageId | string | Yes | — | The Notion page ID to update |
properties | object | Yes | — | Notion property values to change (partial update) |
archived | boolean | No | — | Set to true to archive (soft-delete) the page |
Success response (200)
{
"success": true,
"data": {
"pageId": "abc123-def456-...",
"url": "https://notion.so/abc123def456",
"updated": true
}
}
Usage
cURL
# Change a page's Status property to "Published"
curl -X POST "$FUNCTION_URL" \
-H "Content-Type: application/json" \
-d '{
"pageId": "your-page-id",
"properties": {
"Status": { "select": { "name": "Published" } }
}
}'
Use Cases
- Content pipeline: Mark blog posts or social media content as "Published" after posting to another platform.
- Task management: Update task status, priority, or assignee based on workflow triggers.
- CRM updates: Change deal stage, add notes, or update contact information programmatically.
- Archiving: Soft-delete processed records by setting
archived: true.
Notes
propertiesis a partial update — only include the fields you want to change. Other fields remain untouched.- Property names and formats must match your database schema exactly.
- The integration must have access to the page's parent database (share it via Connections).
Metadata
Tags
Publisher
@navin
Required Secrets
Add these in your Aerostack dashboard under Project → Secrets.
- key
NOTION_API_KEYNotion integration token — authenticates API requests to your Notion workspace.
Build and publish your own functions
Write a TypeScript function, deploy it to the edge, and share it with thousands of developers — in minutes.
Similar Functions
View all →Frequently asked questions
What does the int-notion-page-update function do?+
int-notion-page-update is a typescript edge function in the Database category. It runs on aerostack with native access to database, cache, queue, AI, and storage bindings — call it from any AI workspace or directly as a REST endpoint.
How do I deploy int-notion-page-update to my Aerostack workspace?+
Install from the Aerostack marketplace in one click, or via CLI: aerostack install function navin/int-notion-page-update Once installed it appears in your workspace tools and any connected AI agent can call it.
What runtime does int-notion-page-update use?+
int-notion-page-update runs on aerostack via the Aerostack edge runtime. Aerostack injects native bindings (DB, KV cache, AI, vector search, storage, queue) so the function has zero-latency access to backend primitives without making HTTP round-trips.
Can I fork and customize int-notion-page-update?+
Yes. Fork int-notion-page-update from your Aerostack dashboard, modify the source (typescript), and redeploy. All changes are version-controlled and the original remains available to revert to.