Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Create a target

POST
/xeonr.updater.v1.UpdaterService/CreateTarget

Adds a target to a branch and returns it with its new tgt_ id. A public target is served to anyone; a private one only to callers with an updater token naming it, or with write access. Releases are offered on the targets they are assigned to.

An unknown branch is NOT_FOUND; a name already used by any target of the app 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

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
name?string
Length1 <= length <= 64
branchId?string
Length1 <= length
public?boolean
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/CreateTarget" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "target": "map[branchId:br_4f1a9c2e7b3d5a60 createdAt:2026-10-01T09:30:00Z id:tgt_9e2b7c4a1f3d6e05 name:production public:true]"
}

Create a draft release POST

Creates a release on a branch and returns it with its new `rel_` id. The release always starts as a draft: upload its artifacts, then call `PublishRelease`. The `draft` field is not read. `git_commit` and `repo_url` let the CLI and the download page link the commit and the changes since the previous release. Refused with `NOT_FOUND` for an unknown branch, target or required module; `INVALID_ARGUMENT` for a version that is not semver on a branch that enforces it, or a target on another branch; `ALREADY_EXISTS` for a version already on the branch. 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`.

Delete an app POST

Deletes the app's bucket with `force`, so its config, branches, releases, artifacts and distributions go with it. This cannot be undone. Afterwards every API key bound to the app is revoked at Xeonr Auth (best effort; a key bound only to a deleted app can no longer reach anything). 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.