Rivier/ Reference/ hosting

Apply a theme by id (a person only)

post/hosting/sites/{id}/theme

Apply a theme by id (a person only); the site's tokens become the theme's and the previous ones are returned so they can be set back.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Graphql
Mutation.hostingThemeApply
Sdk
hosting.theme.apply
Cli
hosting theme apply

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • presetIdstringrequired
    At most 40 characters.

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