Rivier/ Reference/ hosting

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)required
    In the path

Request bodyapplication/json, required

  • kindstringrequired
    One of: preview, production.
  • approveboolean
  • notestring
    At most 300 characters.
  • pageslist of string (uuid)
  • removelist of string (uuid)
  • atstring
    At most 40 characters.

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown