Browse API

Preflight a Release

Check immutable Release evidence without publication.

POST/api/v0/projects/<key>/releases/prepare

Request

POST https://repopack.com/api/v0/projects/<key>/releases/prepare
Authorization: Bearer <token>
Content-Type: application/json

{"product":"rp","version":"1.0.0","job":1,"run":1,"attachments":[]}

This is a read-only preflight for the same evidence used by publication. It accepts product, version, numeric job and run, and optional attachments (each {name, bytes}), attach, promote_to, and validate_attach. A token with release.write and job.read is required; promote_to also requires release.manage. The referenced product, Job, Run and optional channel must belong to the same project. The response is the candidate evidence preview and optional promotion evidence; it does not reserve a version or guarantee that a later publication will succeed. Recheck state and evidence at the actual write.

An unreadable project returns 401, missing privilege 403, missing resource 404, and incompatible rolling channel, tag-attachment or publication conflicts return a structured conflict response. A rolling channel never accepts immutable Release members. Release distribution explains the distinction between a Run, a published Release and a channel tip.

Attachments encode file bytes as base64. The complete encoded JSON request is limited to 48 MiB (413 above that limit), preserving the existing decoded metadata limits of 8 MiB per file, 32 MiB total, and 16 files.