Rename a branch or change its versioning
Renames the branch and, when disable_semver is set, switches semver enforcement on or off; leaving disable_semver unset keeps the current setting. The update-check cache is cleared, so the new ordering applies to the next check. Returns the updated branch.
An unknown branch is NOT_FOUND; a name used by another branch is ALREADY_EXISTS. The caller needs write access to the app's bucket (a signed-in person's token carrying upl:uploads:manage); a read-only token gets PERMISSION_DENIED, and so does an API key.
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= length1 <= length1 <= length <= 64When true, versions are freeform and release ordering uses published_at instead of semver. Settable only at creation until now, which made it a trap: whether semver ordering is meaningful is something you discover after publishing a few builds, and by then the only ways out were recreating the branch or editing the bucket config by hand.
optional, not a bare bool, so the server can tell "leave it alone" from "set it to false". A plain bool would mean every existing caller that omits the field — the renderer's rename, for one — silently switches semver enforcement back on.
Response Body
application/json
application/json
curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/UpdateBranch" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"branch": "map[createdAt:2026-10-01T09:30:00Z disableSemver:true id:br_4f1a9c2e7b3d5a60 name:nightly]"
}Set the repositories an app is published from POST
Replaces the forge repositories whose CI may publish releases to the app with a workload token (a CI step's own identity, exchanged at Xeonr Auth) instead of a stored API key, and returns the list as stored. A workload needs an exact repository grant or membership beneath a granted group path. The repository team must own the app. Empty grants (the default) admit no workload; API keys are unaffected. Repositories are forge paths, `group/project` or deeper (`xeonr/burrow/cli`); they are trimmed, lower-cased and de-duplicated. The same call sets what a workload may publish: `tag_prefix` (a release version is the run's tag with it stripped; empty is `v`), `packages` (the step packages that may publish; empty is `updater/publish` and `ci/updater-publish`) and `prerelease_branch_ids` (the only branches that take a version with a pre-release part from CI). The principals field replaces both kinds of grant. Older callers that send repository paths preserve the existing group grants. The response, and `GetConfig` to a caller who reads the app in full, carry them as `publishing`, with Forge IDs resolved as the signed-in app administrator. Only a signed-in person with write access to the app may call this: an API key, a CI workload and another product acting for a person (the caller exchange) get `PERMISSION_DENIED`.
Update an app's updater config POST
Replaces the app's display name, login redirect URL and `public_source` flag; all three are written as sent, so send the current values of the ones you are not changing. Branches, targets, modules and distributions are left alone. On an app with no config yet, this first save also generates its signing secret. The response is empty. The caller needs write access to the app's bucket (a signed-in person's token carrying `upl:uploads:manage`); a read-only token gets `PERMISSION_DENIED`, and so does an API key. A config that cannot be read is an error, never replaced with a blank one.