Promote or clear the tip
POST https://repopack.com/api/v0/projects/<key>/releases/products/<product>/channels/<channel>/promote
Authorization: Bearer <token>
Content-Type: application/json
{"version":"1.0.0"}
With release.manage, promotion accepts only a normal unattached immutable version. A deprecated/revoked or already attached version returns 409 (release_channel_target_not_normal or release_channel_member_attached). An accepted request waits for human confirmation, pins channel revision, prior tip, version and tag; changed state yields 409 release_channel_promotion_stale. Confirmed success returns channel detail with URL. This is for an already published version; publish with promote_to combines publication and selection in one confirmation when both are intended.
POST /api/v0/projects/<key>/releases/products/<product>/channels/<channel>/clear with the same headers and JSON {} clears only the tip, retaining members. Already empty returns 409 release_channel_unchanged; stale confirmation returns 409 release_channel_clear_stale. A public empty channel exposes no version bytes.
Withdraw a member or edit description
POST /api/v0/projects/<key>/releases/products/<product>/channels/<channel>/remove with JSON {"version":"1.0.0"} and release.manage withdraws a non-tip member. An unattached version returns 409 release_channel_member_missing; a pointing tip returns 409 release_channel_member_is_tip—clear or move it first. A stale confirmation yields 409 release_channel_membership_stale. PATCH /api/v0/projects/<key>/releases/products/<product>/channels/<channel>/description with JSON {"description":"one line"} is a separate guarded description-only operation; unchanged text returns immediately, invalid text 400, stale confirmation 409 release_channel_description_stale. Both paths require Authorization: Bearer <token> and Content-Type: application/json; inspect the exact confirmed channel state before retrying. Withdrawal can remove public access to an old exact version URL.