Rivier/ Reference/ hosting

Serve an earlier production deployment again

post/hosting/sites/{id}/deployments/{dep}/rollback

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Mcp
rivier_hosting_deployment_rollback
Graphql
Mutation.hostingDeploymentRollback
Sdk
hosting.deployment.rollback
Cli
hosting deployment rollback
Events
hosting.deployment.rolledBack

Parameters

  • idstring (uuid)required
    In the path
  • depstring (uuid)required
    In the path

Responses

  • 200application/json
    Success
    • idstring (uuid)required
    • projectIdstring (uuid)required
    • kindstringrequired
      One of: production, preview.
    • statestringrequired
    • sourcestringrequired
    • refstringrequired
    • bundleBytesnumberrequired
    • urlstring or nullrequired
    • releasestring or nullrequired
    • promotedFromstring (uuid) or nullrequired
    • errorstring or nullrequired
    • expiresAtstring or nullrequired
    • createdBystringrequired
    • createdAtstringrequired
    • finishedAtstring or nullrequired
  • 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