Rivier/ Reference/ hosting

What applying an entry to the site would change

post/hosting/sites/{id}/design-library/preview

What applying an entry to the site would change: before and after, contrast checks, fonts needed, the versions that would be pinned. Changes nothing.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:read
Mcp
rivier_design_library_apply_preview
Graphql
Query.hostingLibraryApplyPreview
Sdk
hosting.libraryApply.preview
Cli
hosting library apply preview

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • entryIdstringrequired
    Pattern: ^[a-z][a-z0-9-]{2,60}$.
  • versionstring
    Pattern: ^\d+.\d+.\d+$.
  • modestring
    One of: light, dark.
  • partslist of string
  • pageIdstring (uuid)
  • positionstring or integer
  • briefKeystring
    At most 200 characters.

Responses

  • 200application/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