Roll back a deployment to a previous revision
Re-applies the spec of a previous revision. Pods running the target revision will be retained. Other pods will be drained and restarted with the target revision. Only the 50 most recent revisions per deployment can be rolled back to; older targets return 404.
Authorization
bearerAuth In: header
Path Parameters
Deployment ID or name.
Request Body
application/json
Revision identifier (revision number or UUID)
Request body identifying the deployment revision to roll back to.
Revision number or revision ID to roll back to.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/deployments/string/rollback" \ -H "Content-Type: application/json" \ -d '{ "revision_identifier": "string" }'{ "args": [ "string" ], "autoscaling": { "metric": "HTTPTotalRequests", "target": 0, "time_interval_minutes": 0 }, "capacity_type": "stable", "command": [ "string" ], "cpu": 0, "created_at": "2019-08-24T14:15:22Z", "description": "string", "desired_replicas": 0, "environment_variables": [ { "name": "string", "value": "string", "value_from_secret": "string" } ], "gpu_count": 0, "gpu_type": "h100-80gb", "health_check_path": "string", "id": "string", "image": "string", "max_replicas": 0, "memory": 0, "min_replicas": 0, "model_mounts": [ { "model_id": "string", "mount_path": "string", "revision_id": "string" } ], "name": "string", "object": "deployment", "port": 0, "ready_replicas": 0, "replica_events": { "property1": { "image": "string", "replica_ready_since": "string", "replica_status": "string", "replica_status_message": "string", "replica_status_reason": "string", "revision_id": "string", "volume_preload_completed_at": "string", "volume_preload_started_at": "string", "volume_preload_status": "string" }, "property2": { "image": "string", "replica_ready_since": "string", "replica_status": "string", "replica_status_message": "string", "replica_status_reason": "string", "revision_id": "string", "volume_preload_completed_at": "string", "volume_preload_started_at": "string", "volume_preload_status": "string" } }, "status": "Updating", "storage": 0, "termination_grace_period_seconds": 0, "updated_at": "2019-08-24T14:15:22Z", "volumes": [ { "mount_path": "string", "name": "string", "version": 0 } ]}Get the full configuration of a specific revision GET
Returns the deployment configuration defined by the specified revision. Only the 50 most recent revisions per deployment retain their configuration; older revisions return 404 even while they still appear in the revision history. The deployment's currently active revision is always available, regardless of age.
Get the list of project secrets GET
Retrieve all secrets in your project