Publish a preview, or ask for a production release (checks must pass
post/hosting/sites/{id}/publish
Publish a preview, or ask for a production release (checks must pass; a person approves). A person can pass approve to do both at once.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Mcp
rivier_site_page_publish- Graphql
Mutation.hostingSitePublish- Sdk
hosting.site.publish- Cli
hosting site publish
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- kindstringrequiredOne of: preview, production.
- approveboolean
- notestringAt most 300 characters.
- pageslist of string (uuid)
- removelist of string (uuid)
- atstringAt most 40 characters.
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