Skip to main content
PUT
The automation-friendly write. If a Page in your workspace holds this slug (or held it before a rename), the call adds a version to it. Otherwise it creates the Page under this slug. You never have to store a page id. Needs a key with Pages write turned on. See Scheduled and automated Pages for the full recipe.

Authorization

string
required
Bearer mac_live_…

Path parameters

string
required
1 to 63 lowercase letters, digits and dashes. Anything else is 422 VALIDATION_FAILED.

Body

string
required
The full HTML document. Up to your plan’s per-version cap (512 KB on Free).
string
Up to 150 characters. On create, without it we use the HTML <title>, then “Untitled page”. On update it renames the Page.
string | null
Plain text, up to 300 characters. null clears it.
string
private or public. Defaults to private on create. On update it changes the Page’s visibility.
string
Up to 500 characters, shown next to the version in the app.
string
Link the Page to a conversation. Only used on create.
Every run applies the fields it sends and leaves the rest alone, so leave out title or visibility if someone manages them in the app. Otherwise the next run overwrites their change.

Response

201 Created when this call created the Page, 200 OK when it updated one.
boolean
true on success.
boolean
true when this call created the Page.
object
The Page. Same fields as Get a page.
integer
The version this call produced, or the current one when deduplicated.
string
The Page’s link: the members-only door for private, the Page itself for public.
string
The permanent /v/{n} address of this version. For a private Page it sends members through the sign-in door first.
string
SHA-256 of the stored content.
boolean
true when the content was byte-for-byte identical to the current version, so nothing new was stored.

Errors