Skip to Content
API ReferenceUpdate Page

Update Page

Partially update an existing page.

PATCH /api/pages/:id

Authentication

Required. API key or browser session. You can only update your own pages.

Path parameters

ParameterTypeDescription
idUUIDThe page ID

Request body

All fields are optional. Only include fields you want to change.

{ "title": "Updated Title", "description": "New description", "slug": "new-slug", "components": [ { "type": "hero", "props": { "headline": "Updated" } } ], "theme": { "preset": "cyberpunk-neon" }, "customCss": "h1 { font-size: 3rem; }", "meta": { "ogImage": "https://example.com/new-og.png" }, "is_published": true, "show_in_widget": false }
FieldTypeDescription
titlestringMax 200 chars
descriptionstringMax 2000 chars
slugstring2-60 chars, lowercase alphanumeric + hyphens
componentsarrayMax 50 component objects
themeobjectPreset and/or overrides
customCssstringMax 10240 chars
metaobjectMetadata fields
is_publishedbooleanWhether page is publicly visible
show_in_widgetbooleanWhether page appears in iOS widget

Response

Status: 200 OK

{ "page": { "id": "550e8400-e29b-41d4-a716-446655440000", "slug": "new-slug", "title": "Updated Title", "...": "..." } }

Errors

StatusErrorWhen
400Validation errorInvalid fields, details included
401Not authenticatedMissing or invalid auth
404Page not foundID doesn’t exist or not owned by you
Last updated on