Rivier/ Reference/ content

Set who may read a page

put/content-access/{entryId}

Set who may read a page: free, members, paid (named tiers), metered (free reads per month) or preview (the first blocks).

Before you call

Credential
Authorization: Bearer $KEY
Scope
content:admin
Sdk
content.access.set
Cli
content access set

Parameters

  • entryIdstring (uuid)required
    In the path

Request bodyapplication/json, required

  • modestringrequired
    One of: free, members, paid, metered, preview.
  • tierIdslist of string (uuid)
    Default: [].
  • teaserBlocksinteger
    Default: 2. At least 0. At most 50.
  • meterFreeinteger
    Default: 3. At least 0. At most 100.

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