Rivier/ Reference/ hosting

Apply an entry to the site

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

Apply an entry to the site. Needs a person with manager rights and approve: true; an assistant gets the preview and a request for approval (202). The site pins the version used and the change can be undone.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Graphql
Mutation.hostingLibraryApplyApply
Sdk
hosting.libraryApply.apply
Cli
hosting library apply apply

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.
  • 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