Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Update a distribution

POST
/xeonr.updater.v1.UpdaterService/UpdateDistribution

Changes only the fields that are set: label, platform, version, public and url when present, and target_ids only when set_target_ids is true (an empty list then offers the entry on every target). Setting a non-empty url on a hosted entry deletes its uploaded file and turns it into an external one. Returns the updated distribution.

An unknown distribution is NOT_FOUND; an unknown target id is INVALID_ARGUMENT. The caller needs write access to the app's bucket: a signed-in person's token carrying upl:uploads:manage, or a team API key. A read-only token (the download page's client_credentials token, or one without that scope) gets PERMISSION_DENIED.

An updater-cli team API key (carrying updater:apps:read and updater:releases:edit) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets NOT_FOUND.

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
distributionId?string
Length1 <= length
label?|

Each field is optional so a caller can change one thing without restating the rest — and, for public, so that omitting it cannot be mistaken for setting it false.

platform?|
version?|
targetIds?array<>
setTargetIds?boolean

Whether target_ids above should be applied at all. Without it an empty list is ambiguous: "leave alone" or "offer on every target".

public?|
url?|
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/UpdateDistribution" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "distribution": "map[createdAt:2026-10-01T09:30:00Z file:map[filename:pixel-installer-linux.sh sha512:dc6d9befa2c14e8471f250a43954e83a3816e03a17c7c174be808a69ed49f5734e82efd2662d31552a6353a952b6be9f8d6151573fc614073e45efe516afd7a1 sizeBytes:24576] id:dst_1a6c9e3b7d2f5a84 label:Linux installer platform:linux public:true targetIds:[tgt_9e2b7c4a1f3d6e05] version:2.1.0]"
}