Rivier/ Reference/ content

Add a tier: a name, free or paid, a price and a period (month, year or once)

post/members/tiers

Before you call

Credential
Authorization: Bearer $KEY
Scope
content:admin
Sdk
content.tier.create
Cli
content tier create

Request bodyapplication/json, required

  • namestringrequired
    At most 120 characters.
  • slugstringrequired
    Pattern: ^[a-z0-9][a-z0-9-]{0,62}$.
  • kindstring
    One of: free, paid. Default: paid.
  • priceMinorinteger
    Default: 0. At least 0. At most 10000000.
  • currencystring
    Default: eur. Pattern: ^[a-z]{3}$.
  • periodstring
    One of: month, year, once. Default: month.
  • descriptionstring
    Default: . At most 1000 characters.
  • positioninteger
    Default: 0. At least 0. At most 1000.

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