Skip to Content
Pindown.ai is in early alpha - features may change
Pages APIUpdate Page

Update Page

Update a page’s metadata (title, tags, etc.).

Endpoint

PUT /v1/pages/:pageId

Authentication

Requires API key with pages:write scope. You must be the page owner or an editor.

Authorization: Bearer pk_live_your_api_key

Path Parameters

ParameterTypeRequiredDescription
pageIdstringYesPage ID (e.g., pg-abc123)

Request Body

FieldTypeRequiredDescription
metadataobjectNoPage metadata to update

Metadata Object

FieldTypeRequiredDescription
titlestringNoNew page title
tagsstring[]NoNew tags array

Example

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