Create a page at a path, optionally with its block tree
post/hosting/sites/{id}/pages
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Mcp
rivier_site_page_create- Graphql
Mutation.hostingSitePageCreate- Sdk
hosting.sitePage.create- Cli
hosting site page create
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- projectobject
- coverobject or null
- summarystringDefault: . At most 300 characters.
- yearinteger or null
- clientstringDefault: . At most 120 characters.
- roleslist of stringDefault: [].
- tagslist of stringDefault: [].
- linkslist of objectDefault: [].
- labelstringrequiredAt most 60 characters.
- urlstring (uri)requiredAt most 300 characters.
- labelstringrequired
- visibilitystringOne of: draft, public, unlisted, expiring, password.
- expiresAtstring or null
- orderinteger or null
- featuredboolean
- rightsobject or null
- passwordstringAt most 128 characters.
- pathstringrequiredAt most 120 characters.
- titlestringrequiredAt most 200 characters.
- localestringAt most 20 characters.
- groupstring or null
- seoobject
- treelist of objectThe page content as a list of blocks.
- blockslist of objectAn alias of tree, accepted for callers that name the list blocks. Send one of the two.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring