Projects

POST /projects/{project_id}/deployments/{deployment_id}/rollback

Changed on

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

project_idinteger required

Project ID

deployment_idinteger required

Deployment ID to rollback to

Response

Rollback initiated successfully

branchstring nullable
cancelled_reasonstring nullable
commit_authorstring nullable
commit_datestring date-time nullable
commit_hashstring nullable
commit_messagestring nullable
created_atstring date-time required
environment_idinteger required
finished_atstring date-time nullable
idinteger required
image_userstring nullable

The USER the image declares, as written (nodejs, 10001:10001). null when it declares none (it then runs as root) or the deployment was not checked.

is_currentboolean required
project_idinteger required
runs_as_rootboolean

Whether this deployment's image runs its process as root (uid 0). Resolved once by the deploy pipeline, before any replica started, against the image's own /etc/passwd. false when the image runs as another user, its user could not be resolved, or the deployment predates the check. Advisory: a root image still deploys.

screenshot_locationstring nullable
started_atstring date-time nullable
statusstring required
tagstring nullable
urlstring required

Example response

{
  "environment": {
    "service_urls": [
      {
        "port": 3000,
        "service": "web",
        "url": "https://web--production.localho.st"
      }
    ]
  },
  "reachability_warning": {
    "environment": "myapp-production",
    "fixes": [
      {
        "label": "Publish it through tunnel 'homelab' as myapp-production.example.com"
      }
    ]
  }
}

Changes

    • breaking

      the commit_date response's property type changed from integer null to string null, and format from int64 to date-time for status

    • breaking

      the created_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the finished_at response's property type changed from integer null to string null, and format from int64 to date-time for status

    1 more change in this revision