Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Create a distribution

POST
/xeonr.updater.v1.UpdaterService/CreateDistribution

Adds an installer or store listing to the app and returns it with its new dst_ id. With url set it is an external entry: the download endpoint redirects there. Without it the entry is hosted, and gets its binary through UploadDistributionFile and ConfirmDistributionFile. Empty target_ids offers it on every target.

A target id that does not exist 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
label?string
Length1 <= length <= 64
platform?string
Length1 <= length
version?string
targetIds?array<>
public?boolean
url?string

Set for an external entry. A hosted one is created without a source and gains its file through UploadDistributionFile/ConfirmDistributionFile.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/CreateDistribution" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "distribution": "map[createdAt:2026-10-01T09:30:00Z id:dst_8e4b2d6f0a1c3e57 label:App Store platform:ios public:true targetIds:[] url:https://apps.apple.com/app/pixel/id1234567890]"
}