/v1/deployments/{uid}/runs/{run_uid}/artifactDeletes the container image built by a run to free storage. The run stays in the history, but it can no longer be redeployed. If the run has no image, the run is returned unchanged.
You cannot delete the image that is currently being served, or the image of the latest run while it is still in progress.
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.
run_uidstringRequiredThe run's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The image was deleted. Returns the updated run, without image_digest and artifact_size_bytes.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow 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.
Errors
| Status | Meaning |
|---|---|
400 | This artifact is serving the current app version. or This artifact belongs to an active deployment run. |
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. |
Errors use the standard error format.