Rivier/ Reference/ hosting

Preview moving a pinned entry to its latest version or its replacement

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

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Graphql
Mutation.hostingLibraryUpgradePreview
Sdk
hosting.libraryUpgrade.preview
Cli
hosting library upgrade preview

Parameters

  • idstring (uuid)required
    In the path
  • entrystringrequired
    In the path

Request bodyapplication/json, required

  • tostring
    Pattern: ^[a-z][a-z0-9-]{2,60}$.
  • modestring
    One of: light, dark.
  • pageIdstring (uuid)
  • approveboolean

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