Containers

Roll a container back

Puts an earlier version live again (same image and settings) as a new version, with the same health check as a deploy (202).

post/containers/{id}/rollback

Request

  • Base URL: https://api.hypamoon.com/api/v1
  • URL: https://api.hypamoon.com/api/v1/containers/{id}/rollback
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.hypamoon.com/oauth/authorize, token URL https://api.hypamoon.com/oauth/token, scopes: sites:write)

Path parameters

idstring uuid required

The id of the container.

Request body

versioninteger required

The version to go back to (list_container_versions).

Response

The container and the rollback in the queue.

idstring uuid required
site_idstring uuid required
namestring required
urlstring required
mode'live' | 'test' required
status'deploying' | 'running' | 'failed' | 'suspended' required
versioninteger required

The live version; 0 until the first deploy is live.

instance_typestring required
instancesinteger required
always_onboolean required
sleep_afterstring required
portinteger required
health_pathstring required
allowed_hostsstring[] required
secretsstring[] required
env_namesstring[] required

Names of the plain environment variables (never the values of secrets).

created_atstring required
updated_atstring required
keptstring[]

Changes

No recorded changes to this operation across all 1 revision of this API.