Build a Snapshot Archive
ExperimentalThis API is under active development and may change.
POST /api/0/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/archive/
Start building a zip archive of a snapshot's images and its manifest.
The archive is built in the background, and the requesting user gets an email with a download link when it's ready. Poll the GET method of this endpoint to see when it's ready. Each request starts another build and sends another email.
Returns 404 when the snapshot doesn't exist, the requester can't access its project, or it has no image manifest, and 503 when the build couldn't be queued.
Path Parameters
organization_id_or_slug(string)REQUIREDThe ID or slug of the organization the resource belongs to.
snapshot_id(string)REQUIREDThe ID of the snapshot.
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:org:ciproject:adminproject:releasesproject:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/archive/ \ -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied{ "detail": "Building your snapshot archive — we'll email you a download link when it's ready." }
Was this helpful?