Browse API

Manage Release channels

Create, change or retire channels through pinned human confirmation.

POST/api/v0/projects/<key>/releases/products/<product>/channels

Create a channel

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

{"name":"stable","visibility":"public"}

This authenticated write requires release.manage and a preexisting product. visibility is project or public. An optional rolling channel requires both "rolling":true and a same-project numeric "job"; omitting both creates an empty channel of immutable Releases. Inconsistent rolling options return 400 release_channel_rolling_binding_required, unknown bound Job 404. The initial request produces a human confirmation challenge (428); confirmed success returns 201 and the channel detail with canonical URL. Neither channel kind publishes a Release. Channel ID is durable across rename; don't use a guessed stable fallback.

Read, update or retire

GET /api/v0/projects/<key>/releases/products/<product>/channels/<channel> can return a publicly visible channel to an anonymous caller; valid release.read credentials can also read eligible project channels. For a name-based URL, include a server-provided identity parameter when required after a rename; a durable id-<number> URL is preferable. An invalid or expired presented token fails rather than granting anonymous fallback.

New channel names and renames must start with a lowercase letter. For distribution, opt-in v3 discovery returns durable /channels/<number> URLs; management commands still accept channel names.

That GET is a distribution read: an empty but configured channel may be unavailable there. Use the authenticated management inventory to check whether an empty or project-only channel already exists before attempting creation or inspection.

PATCH the channel detail path with JSON containing at least one of name, visibility or one-line bounded description requires release.manage. The entire requested change is human-confirmed against channel revision, identity, access and membership; unchanged fields return 409 release_channel_update_unchanged, empty input 400 release_channel_update_empty, and stale confirmation 409 release_channel_update_stale. Success returns channel detail and canonical URLs. A rename does not change durable identity, but old slug links can stop resolving.

DELETE the detail path requires release.manage and a pinned confirmation. Only a rolling channel can be deleted; immutable Release channels return 409 release_channel_kind_conflict. Changed state returns 409 release_channel_delete_stale or a channel conflict. Successful confirmed deletion returns {ok:true,id,name,kind:"rolling",deleted_at}; a subsequent name reuse is a new identity, never a revival. Inspect the action and channel before retrying any guarded mutation.