Update Page
Update a page’s metadata (title, tags, etc.).
Endpoint
PUT /v1/pages/:pageIdAuthentication
Requires API key with pages:write scope. You must be the page owner or an editor.
Authorization: Bearer pk_live_your_api_keyPath Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pageId | string | Yes | Page ID (e.g., pg-abc123) |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
metadata | object | No | Page metadata to update |
Metadata Object
| Field | Type | Required | Description |
|---|---|---|---|
title | string | No | New page title |
tags | string[] | No | New tags array |
Example
Client-JS
import { PindownClient } from '@pindownai/client-js'
const client = new PindownClient({
apiKey: process.env.PINDOWN_API_KEY
})
const page = await client.pages.update('pg-abc123', {
metadata: {
title: 'Updated Report Title',
tags: ['sales', 'monthly', 'updated']
}
})
console.log(`Page updated: ${page.id}`)Response
{
"success": true,
"data": {
"id": "pg-abc123",
"updated_at": 1703123456789
},
"message": "Page updated successfully"
}Next Steps
- Get Page - Retrieve updated page
- Delete Page - Remove a page