Rivier/ Reference/ content

Send an old address to a new one so links and search standing carry over

post/cms/redirects

Send an old address to a new one so links and search standing carry over. A redirect never points at another one; chains are followed on write.

Before you call

Credential
Authorization: Bearer $KEY
Scope
content:write
Mcp
rivier_cms_redirect
Graphql
Mutation.contentRedirectSet
Sdk
content.redirect.set
Cli
content redirect set

Request bodyapplication/json, required

  • fromstringrequired
    At most 500 characters.
  • tostringrequired
  • statusnumber
    One of: 301, 302, 307, 308, 410. Default: 301.
  • sitestring
    Default: . At most 80 characters.

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