Browse API

Deprecate or revoke a Release

Human-confirm an audited one-way lifecycle change with a reason.

POST/api/v0/projects/<key>/releases/products/<product>/versions/<version>/deprecate

Deprecate

POST https://repopack.com/api/v0/projects/<key>/releases/products/<product>/versions/<version>/deprecate
Authorization: Bearer <token>
Content-Type: application/json

{"reason":"Superseded by the corrected build"}

An account with release.manage must supply an audited, nonempty reason. The initial request returns a human confirmation challenge (428); a confirmed outcome is the Release detail plus lifecycle_history. Normal → deprecated preserves authorized exact record/byte access with a warning. An invalid reason or impossible state transition returns a structured release_lifecycle_conflict; an unavailable product or version is not disclosed. A deprecated version cannot become normal again.

Revoke

Use POST /api/v0/projects/<key>/releases/products/<product>/versions/<version>/revoke with the same headers and {"reason":"<audited reason>"}. Normal or deprecated versions can become revoked; a pointing channel tip must first be moved or cleared. A confirmed revocation cuts off exact record and artifact/attachment access (410) without deleting the version, Git tag, hold, or audit history. It cannot be undone. Do not repeat a timed-out lifecycle write without observing the guarded action and version state; a concurrent tip/lifecycle change can refuse execution with 409.