Set the repositories an app is published from
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.
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= lengthEvery forge repository the app is published from, replacing the list. Empty admits no CI workload.
items <= 16What a release tag starts with: a workload's release version is its tag with this stripped (tag updater-cli-v1.4.0, prefix updater-cli-v, version 1.4.0). Empty is "v".
^[A-Za-z0-9._-]*$length <= 64The step packages that may publish (WorkloadClaim package name, without its version). Empty is updater/publish and ci/updater-publish.
items <= 8The branches a workload may publish a prerelease version (one with a semver pre-release part) to. Every other branch takes stable versions only from CI.
items <= 32The branches a workload may release to, besides the prerelease branches above. Empty is the app's branch named "stable" alone (none when it has no such branch).
items <= 32The version of the settings this change was made from (Publishing.version as last read; 0 when none were ever saved). A save made from older settings is refused with ABORTED, so a stale console tab cannot silently reset what someone else changed.
int640 <= valueWhen present, replaces both repository and group grants, using editor-selected Forge IDs. An empty message revokes all grants. Older editors set repositories by path and preserve existing group grants.
Response Body
application/json
application/json
curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/SetPublishedFrom" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"repositories": [
"xeonr/burrow/cli"
],
"publishing": {
"repositories": [
{
"path": "xeonr/burrow/cli",
"repositoryId": "7f2c1d9e-5b3a-4e8f-a1c6-0d9b8e7f6a54"
}
],
"tagPrefix": "updater-cli-v",
"packages": [
"updater/publish",
"ci/updater-publish"
],
"prereleaseBranchIds": [
"br_7a3e0c51d9f24b86"
],
"branchIds": [
"br_2c9d41e7a0b35f68"
],
"version": "3",
"groups": [
{
"path": "string",
"groupId": "string"
}
]
}
}Replace an app's hostnames POST
Replaces the app's hostnames with `hostnames` and sets `primary_hostname` as the primary, then returns the resulting list as `GetAppDomains` does. The slug's own hostname is always kept, whatever is sent; an upl.im name may be given whole (`downloads.upl.im`) or as its label (`downloads`), and duplicates are dropped. A custom domain is live once its CNAME to `cname_target` verifies; until then its status is `pending`. A `primary_hostname` that is not among the app's hostnames is `INVALID_ARGUMENT`; upl refuses an unverified custom domain as primary. Bucket administration: the caller's token needs write access and the `upl:bucket:manage` scope, else `PERMISSION_DENIED` (that scope is not yet delegated to the updater's console session); upl-im-api also requires the upl admin role in the owning team. API keys are refused.
Rename a branch or change its versioning POST
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.