Skip to main content
PATCH
Edit a page

Authorizations

Authorization
string
header
required

A workspace API key: wdy_live_… / wdy_test_…. Created at POST /workspaces/{tenantId}/keys and shown exactly once.

Path Parameters

pageId
string
required

Body

application/json
name
string
Required string length: 1 - 80
path
string

The address under the workspace host. / is the home page, and exactly one page per workspace has it. Otherwise up to 4 segments of letters, digits and single hyphens (/pymes, /enterprise/latam). Case-insensitive and stored lowercase. Never percent-encoded, never a dot segment. Reserved by the platform (and their whole subtree): admin, api, app, cdn, console, docs, embed, mail, status, storage, well-known, widget, www.

Maximum string length: 200
editorial
object
seo
object

The page's SEO metadata (D-48): <title> and meta description, per language. Valid on both kinds; an empty field inherits the site's home page.

sitemap
object

The page's sitemap hints (D-49.d): priority/changefreq/exclude.

body
object

The markdown of a document page (D-47), per language. Only valid on a document page; an absent language is left alone, "" takes it off, and the source language may not be emptied.

agentId
string

Repoint the page at another agent of the same workspace. Everything the page says changes with it.

defaultLocale
enum<string>

Re-sources the page: the language the owner writes in. Must be one the SITE serves; the set itself is the project’s (D-44).

Available options:
es,
en

Response

id
string
required
name
string
required
kind
enum<string>
required

agent or document (D-47).

Available options:
agent,
document
path
string
required

The address under the site host. / is home.

status
string
required

draft or published.

defaultLocale
enum<string>
required
Available options:
es,
en
editorial
object
required

The owner-written framing (agent page). Empty for a document.

seo
object
required
sitemap
object
required
body
object
required

The markdown of a document page. Empty for an agent page.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
agentId
string

The brain that answers here. Absent for a document page.

projectId
string

The site (project) the page lives in.

publishedAt
string<date-time>