/v1/deployments/{uid}Deletes the deployment. It is marked deleted straight away and disappears from listings,
billing stops, its custom domains are released and its pull request previews are removed.
Tearing down the running app, its route and its persistent volume (destructively) happens
in a delete_deployment operation.
This is asynchronous. It returns 202 Accepted with an operation_id. See
Get an operation.
Component deployments of a one-click app cannot be deleted on their own. Delete the app with Delete an app.
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Path parameters
uidstringRequiredThe deployment's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
X-IdempotencystringOptional key that makes retries safe. Repeating a request with a key already used for
the same action on the same deployment returns the original operation with 200 OK and
is_replay: true instead of queuing it again. Reusing it for a different action or
deployment returns 409 with action: idempotency_key_reused.
Response
The deployment was marked deleted and the teardown was queued.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
operation_idstringRequiredUID of the queued operation. Empty when nothing was queued (create without deploy_now, or a plan change with nothing live).
deploymentobjectRequiredShow attributesHide attributes
uidstringRequiredUnique identifier of the deployment.
namestringRequiredDisplay name.
slugstringRequiredURL-safe name, unique in the workspace.
statusstringRequiredbuilding until the first version is live, then active. failed when the last
deploy failed and nothing is live, idle while a scale-to-zero app is asleep (it wakes
on the next request), paused while the account is suspended for non-payment (the
app is scaled to zero and stops billing for compute; it is resumed automatically once
the account is active again), deleted after deletion. A deployment created without
deploy_now is active even though nothing has been deployed.
One ofactivebuildingfailedpausedidledeleted
display_statusstringStatus to show to people. Same as status, except updating while a live deployment's next version is still building, and starting once that build has an image and the app is coming up. Only computed by list and get; elsewhere equal to status.
plan_slugstringRequiredSlug of the deployment's plan.
plan_namestringName of the plan.
vcpuintegerWhole vCPU count of the plan. Coarse; prefer cpu_limit_millis.
cpu_limit_millisintegerCPU limit per replica in millicores.
memory_mibintegerMemory limit per replica in MiB.
monthly_price_centsintegerPlan price per month per replica, in cents. Omitted for free plans.
hourly_price_centsintegerHourly price in whole cents. Omitted when 0.
hourly_price_microsintegerHourly price in millionths of the currency unit. Omitted for free plans.
currencystringISO currency code of the prices.
free_allowance_countintegerPresent on Free plans with the per-account allowance.
repo_urlstringRequiredGit repository the deployment builds from. Empty for one-click app components, which run a prebuilt image.
git_providerstringgithub_app when the repository is connected through the RumptyCloud GitHub App.
git_repo_full_namestringowner/repository on GitHub.
git_repo_idstringGitHub repository ID.
branchstringRequiredBranch that is built.
root_directorystringFolder inside the repository that is built. Omitted when building from the root.
app_typestringRequiredKind of app.
One ofservicestatic
build_methodstringRequiredHow the image is built. image is used by one-click app components, which run a prebuilt image.
One ofrailpackdockerfileimage
build_commandstringBuild command override, if set.
start_commandstringStart command override, if set.
health_check_pathstringPath probed for health.
portintegerRequiredPort the app listens on.
auto_deploy_enabledbooleanRequiredWhether pushes to the branch deploy automatically.
security_scan_enabledbooleanRequiredWhether built images are scanned for vulnerabilities.
preview_apps_enabledbooleanRequiredWhether pull requests get preview apps.
artifact_retentionintegerRequiredHow many built images are kept for rollbacks. 0 keeps all.
previewsarray of objectsLive pull request previews. Only returned by Get a deployment.
Show item attributesHide item attributes
uidstringRequiredUID of the preview deployment.
pr_numberintegerRequiredPull request number.
branchstringRequiredPull request branch.
statusstringRequiredPreview status, using the same values as a deployment's display_status.
commit_shastringCommit of the preview's latest run.
public_urlstringURL of the preview.
expires_atstring (date-time)When the preview is removed automatically.
volume_mount_pathstringMount path of the persistent volume. Omitted without a volume.
volume_size_gibintegerSize of the persistent volume(s) in GiB. Omitted without a volume.
scale_to_zero_enabledbooleanPresent and true when the app sleeps when idle.
scale_to_zero_idle_minutesintegerIdle minutes before the app sleeps.
min_replicasintegerInstances always running.
max_replicasintegerAutoscaling upper bound.
target_request_rateintegerRequests per second per replica before scaling out.
current_replicasintegerReplicas running now. Each is billed at the plan rate.
app_uidstringSet when the deployment is a component of a one-click app. Such deployments cannot be deleted or change plan on their own.
custom_domainstringThe verified custom domain that public_url uses, if any.
last_run_uidstringUID of the most recent run.
last_run_statusstringStatus of the most recent run. Only returned by list and get.
One ofqueuedbuildingreadyfailedcanceled
public_urlstringURL the app is served at. Uses the custom domain once one is verified. Empty after deletion.
default_public_urlstringThe app's URL on the platform domain. Point custom domain CNAME records at its host.
created_atstring (date-time)RequiredWhen the deployment was created.
last_failurestringReadable reason for the last failure. Omitted when there is none.
env_changes_pendingbooleanPresent and true when environment variables changed since the last deploy and are waiting to be applied. Only returned by Get a deployment.
env_changes_require_buildbooleanPresent and true when the pending changes need a rebuild (Deploy a deployment) rather than Apply environment changes. Only returned by get.
crashloopobjectPresent while the platform is holding the app down because it was not healthy.
Show attributesHide attributes
statestringRequiredpaused: the app was serving, became unhealthy and is retried automatically. stopped: nothing more happens until you restart or redeploy.
One ofpausedstopped
sincestring (date-time)When the app was taken down.
reasonstringWhy the app was taken down.
next_retry_atstring (date-time)Next automatic attempt. Only while paused.
runobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the run.
deployment_uidstringRequiredUID of the deployment.
operation_idstringRequiredUID of the operation that tracks the run. See Get an operation.
triggerstringRequiredWhat started the run.
One ofmanualgit_pushgit_pull_request
statusstringRequiredready once the version is live. canceled when a newer run superseded it. Rollouts without a build start at building.
One ofqueuedbuildingreadyfailedcanceled
branchstringRequiredBranch the run built.
commit_shastringCommit that was built, when known.
commit_messagestringCommit message or label.
trigger_actorstringWho started the run. For manual runs, the username (or email) of the member who made the request; for pushes and pull requests, the GitHub login.
trigger_actor_urlstringLink to the actor's profile, when known.
image_digeststringDigest of the built image. Omitted when the run has no image (failed, or deleted).
artifact_size_bytesintegerSize of the stored image in bytes. Omitted when unknown or deleted.
created_atstring (date-time)RequiredWhen the run was queued.
started_atstring (date-time)When work began.
finished_atstring (date-time)When the run finished.
last_failurestringReadable reason the run failed.
security_scanobjectVulnerability scan of the run's image. Present when scanning is enabled.
Show attributesHide attributes
uidstringRequiredUnique identifier of the scan.
statusstringRequiredwarning when critical or high findings exist. failed when the scan itself failed.
One ofqueuedscanningpassedwarningfailednot_scanned
critical_countintegerRequiredCritical findings.
high_countintegerRequiredHigh findings.
medium_countintegerRequiredMedium findings.
low_countintegerRequiredLow findings.
unknown_countintegerRequiredFindings of unknown severity.
scannerstringScanner used.
started_atstring (date-time)When the scan started.
finished_atstring (date-time)When the scan finished.
scanned_atstring (date-time)Same as finished_at.
vulnerabilitiesarray of objectsIndividual findings. Only returned by Get a deployment run.
Show item attributesHide item attributes
idstringRequiredVulnerability ID, such as a CVE.
severitystringRequiredSeverity reported by the scanner, such as CRITICAL, HIGH, MEDIUM, LOW or UNKNOWN.
package_namestringRequiredAffected package.
installed_versionstringInstalled version.
fixed_versionstringFirst version with a fix, if any.
titlestringShort title.
descriptionstringLonger description.
sourcestringWhere the package was found, such as the OS release or a lockfile.
advisory_urlstringLink to the advisory.
statusstringRequiredStatus of the operation (queued for a new request; the original operation's status, such as running or succeeded, on a replay). Without an operation, the deployment status on create or completed on a plan change.
events_urlstringPath of the server-sent events stream with the operation's progress. Omitted without an operation.
is_replaybooleanRequiredtrue when an X-Idempotency key was reused and the original operation is returned instead of a new one.
is_completedbooleantrue when a replayed operation has already finished. Omitted unless true.
Response
Replay. The X-Idempotency key was already used for this action on this deployment, so
the original operation is returned and nothing is queued. status is the operation's
current status and deployment its current state (or status: deleted if it is gone).
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
operation_idstringRequiredUID of the queued operation. Empty when nothing was queued (create without deploy_now, or a plan change with nothing live).
deploymentobjectRequiredShow attributesHide attributes
uidstringRequiredUnique identifier of the deployment.
namestringRequiredDisplay name.
slugstringRequiredURL-safe name, unique in the workspace.
statusstringRequiredbuilding until the first version is live, then active. failed when the last
deploy failed and nothing is live, idle while a scale-to-zero app is asleep (it wakes
on the next request), paused while the account is suspended for non-payment (the
app is scaled to zero and stops billing for compute; it is resumed automatically once
the account is active again), deleted after deletion. A deployment created without
deploy_now is active even though nothing has been deployed.
One ofactivebuildingfailedpausedidledeleted
display_statusstringStatus to show to people. Same as status, except updating while a live deployment's next version is still building, and starting once that build has an image and the app is coming up. Only computed by list and get; elsewhere equal to status.
plan_slugstringRequiredSlug of the deployment's plan.
plan_namestringName of the plan.
vcpuintegerWhole vCPU count of the plan. Coarse; prefer cpu_limit_millis.
cpu_limit_millisintegerCPU limit per replica in millicores.
memory_mibintegerMemory limit per replica in MiB.
monthly_price_centsintegerPlan price per month per replica, in cents. Omitted for free plans.
hourly_price_centsintegerHourly price in whole cents. Omitted when 0.
hourly_price_microsintegerHourly price in millionths of the currency unit. Omitted for free plans.
currencystringISO currency code of the prices.
free_allowance_countintegerPresent on Free plans with the per-account allowance.
repo_urlstringRequiredGit repository the deployment builds from. Empty for one-click app components, which run a prebuilt image.
git_providerstringgithub_app when the repository is connected through the RumptyCloud GitHub App.
git_repo_full_namestringowner/repository on GitHub.
git_repo_idstringGitHub repository ID.
branchstringRequiredBranch that is built.
root_directorystringFolder inside the repository that is built. Omitted when building from the root.
app_typestringRequiredKind of app.
One ofservicestatic
build_methodstringRequiredHow the image is built. image is used by one-click app components, which run a prebuilt image.
One ofrailpackdockerfileimage
build_commandstringBuild command override, if set.
start_commandstringStart command override, if set.
health_check_pathstringPath probed for health.
portintegerRequiredPort the app listens on.
auto_deploy_enabledbooleanRequiredWhether pushes to the branch deploy automatically.
security_scan_enabledbooleanRequiredWhether built images are scanned for vulnerabilities.
preview_apps_enabledbooleanRequiredWhether pull requests get preview apps.
artifact_retentionintegerRequiredHow many built images are kept for rollbacks. 0 keeps all.
previewsarray of objectsLive pull request previews. Only returned by Get a deployment.
Show item attributesHide item attributes
uidstringRequiredUID of the preview deployment.
pr_numberintegerRequiredPull request number.
branchstringRequiredPull request branch.
statusstringRequiredPreview status, using the same values as a deployment's display_status.
commit_shastringCommit of the preview's latest run.
public_urlstringURL of the preview.
expires_atstring (date-time)When the preview is removed automatically.
volume_mount_pathstringMount path of the persistent volume. Omitted without a volume.
volume_size_gibintegerSize of the persistent volume(s) in GiB. Omitted without a volume.
scale_to_zero_enabledbooleanPresent and true when the app sleeps when idle.
scale_to_zero_idle_minutesintegerIdle minutes before the app sleeps.
min_replicasintegerInstances always running.
max_replicasintegerAutoscaling upper bound.
target_request_rateintegerRequests per second per replica before scaling out.
current_replicasintegerReplicas running now. Each is billed at the plan rate.
app_uidstringSet when the deployment is a component of a one-click app. Such deployments cannot be deleted or change plan on their own.
custom_domainstringThe verified custom domain that public_url uses, if any.
last_run_uidstringUID of the most recent run.
last_run_statusstringStatus of the most recent run. Only returned by list and get.
One ofqueuedbuildingreadyfailedcanceled
public_urlstringURL the app is served at. Uses the custom domain once one is verified. Empty after deletion.
default_public_urlstringThe app's URL on the platform domain. Point custom domain CNAME records at its host.
created_atstring (date-time)RequiredWhen the deployment was created.
last_failurestringReadable reason for the last failure. Omitted when there is none.
env_changes_pendingbooleanPresent and true when environment variables changed since the last deploy and are waiting to be applied. Only returned by Get a deployment.
env_changes_require_buildbooleanPresent and true when the pending changes need a rebuild (Deploy a deployment) rather than Apply environment changes. Only returned by get.
crashloopobjectPresent while the platform is holding the app down because it was not healthy.
Show attributesHide attributes
statestringRequiredpaused: the app was serving, became unhealthy and is retried automatically. stopped: nothing more happens until you restart or redeploy.
One ofpausedstopped
sincestring (date-time)When the app was taken down.
reasonstringWhy the app was taken down.
next_retry_atstring (date-time)Next automatic attempt. Only while paused.
runobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the run.
deployment_uidstringRequiredUID of the deployment.
operation_idstringRequiredUID of the operation that tracks the run. See Get an operation.
triggerstringRequiredWhat started the run.
One ofmanualgit_pushgit_pull_request
statusstringRequiredready once the version is live. canceled when a newer run superseded it. Rollouts without a build start at building.
One ofqueuedbuildingreadyfailedcanceled
branchstringRequiredBranch the run built.
commit_shastringCommit that was built, when known.
commit_messagestringCommit message or label.
trigger_actorstringWho started the run. For manual runs, the username (or email) of the member who made the request; for pushes and pull requests, the GitHub login.
trigger_actor_urlstringLink to the actor's profile, when known.
image_digeststringDigest of the built image. Omitted when the run has no image (failed, or deleted).
artifact_size_bytesintegerSize of the stored image in bytes. Omitted when unknown or deleted.
created_atstring (date-time)RequiredWhen the run was queued.
started_atstring (date-time)When work began.
finished_atstring (date-time)When the run finished.
last_failurestringReadable reason the run failed.
security_scanobjectVulnerability scan of the run's image. Present when scanning is enabled.
Show attributesHide attributes
uidstringRequiredUnique identifier of the scan.
statusstringRequiredwarning when critical or high findings exist. failed when the scan itself failed.
One ofqueuedscanningpassedwarningfailednot_scanned
critical_countintegerRequiredCritical findings.
high_countintegerRequiredHigh findings.
medium_countintegerRequiredMedium findings.
low_countintegerRequiredLow findings.
unknown_countintegerRequiredFindings of unknown severity.
scannerstringScanner used.
started_atstring (date-time)When the scan started.
finished_atstring (date-time)When the scan finished.
scanned_atstring (date-time)Same as finished_at.
vulnerabilitiesarray of objectsIndividual findings. Only returned by Get a deployment run.
Show item attributesHide item attributes
idstringRequiredVulnerability ID, such as a CVE.
severitystringRequiredSeverity reported by the scanner, such as CRITICAL, HIGH, MEDIUM, LOW or UNKNOWN.
package_namestringRequiredAffected package.
installed_versionstringInstalled version.
fixed_versionstringFirst version with a fix, if any.
titlestringShort title.
descriptionstringLonger description.
sourcestringWhere the package was found, such as the OS release or a lockfile.
advisory_urlstringLink to the advisory.
statusstringRequiredStatus of the operation (queued for a new request; the original operation's status, such as running or succeeded, on a replay). Without an operation, the deployment status on create or completed on a plan change.
events_urlstringPath of the server-sent events stream with the operation's progress. Omitted without an operation.
is_replaybooleanRequiredtrue when an X-Idempotency key was reused and the original operation is returned instead of a new one.
is_completedbooleantrue when a replayed operation has already finished. Omitted unless true.
Errors
| Status | Meaning |
|---|---|
400 | The deployment belongs to a one-click app. |
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The resource does not exist or you cannot access it. |
409 | The X-Idempotency key was already used for a different action or a different resource. Send a new key. |
Errors use the standard error format.