Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Start a logo upload

POST
/xeonr.updater.v1.UpdaterService/UploadLogo

Returns a signed intent token for the app's logo. Upload the image with it directly through upl-im-api's RequestSignedUpload and CompleteSignedUpload; once stored, GetConfig reports the logo's URL. Nothing is stored by this call itself.

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
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/UploadLogo" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "signedIntentToken": "sit_EXAMPLE.eyJidWNrZXQiOiJwaXhlbCJ9.EXAMPLE"
}

Start a distribution file upload POST

Requests an upload slot from upl for a hosted distribution's binary and returns its `upload_request_id` with either a list of multipart `parts` (each with its own presigned URL) or a single `upload_url`. PUT the bytes, then call `ConfirmDistributionFile` with the request id and the parts' ETags. Nothing changes on the distribution until the confirm. An unknown distribution is `NOT_FOUND`. 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`.

Start a module artifact upload POST

Requests an upload slot from upl for one `.zip` of a draft module release and returns its `upload_request_id` with either multipart `parts` (each with its own presigned URL) or a single `upload_url`. PUT the bytes, then call `ConfirmModuleArtifact` with the parts' ETags. A filename that does not end in `.zip` is `INVALID_ARGUMENT`; a published module release is `FAILED_PRECONDITION`; an unknown one is `NOT_FOUND`. 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`.