Skip to main content
POST
Duplicate a website page

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Path Parameters

uuid
string
required

WebsitePage identifier

Body

application/json

The new WebsitePage resource

One page of a tenant's public website.

The page body is a JSON list of blocks rather than a rows-in-a-table tree: a page is always read and written whole, never a block at a time, so a child table would buy ordering and integrity we already enforce in WebsiteBlockSanitizer while costing a join on every public page view.

Nothing here is trusted at render time - blocks pass through WebsiteBlockSanitizer on write, which is the only writer of this column.

slug
string
default:""
title
string
default:""
status
string
default:DRAFT
blocks
(string | null)[]
seoTitle
string | null
seoDescription
string | null
ogImage
string | null
position
integer
default:0
isHomepage
boolean
default:false

Response

WebsitePage resource created

One page of a tenant's public website.

The page body is a JSON list of blocks rather than a rows-in-a-table tree: a page is always read and written whole, never a block at a time, so a child table would buy ordering and integrity we already enforce in WebsiteBlockSanitizer while costing a join on every public page view.

Nothing here is trusted at render time - blocks pass through WebsiteBlockSanitizer on write, which is the only writer of this column.

id
integer
read-only
uuid
string | null
tenant
string<iri-reference>
Example:

"/api/v1/tenants/1"

slug
string
default:""
title
string
default:""
status
string
default:DRAFT
blocks
(string | null)[]
seoTitle
string | null
seoDescription
string | null
ogImage
string | null
position
integer
default:0
isHomepage
boolean
default:false
dateCreated
string<date-time>
read-only
dateUpdated
string<date-time> | null
read-only