Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Set the repositories an app is published from

POST
/xeonr.updater.v1.UpdaterService/SetPublishedFrom

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

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketId?string
Length1 <= length
repositories?array<>

Every forge repository the app is published from, replacing the list. Empty admits no CI workload.

Itemsitems <= 16
tagPrefix?string

What 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".

Match^[A-Za-z0-9._-]*$
Lengthlength <= 64
packages?array<>

The step packages that may publish (WorkloadClaim package name, without its version). Empty is updater/publish and ci/updater-publish.

Itemsitems <= 8
prereleaseBranchIds?array<>

The 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.

Itemsitems <= 32
branchIds?array<>

The 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).

Itemsitems <= 32
version?|

The 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.

Formatint64
Range0 <= value
principals?

When 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.

[key: string]?never

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"
      }
    ]
  }
}