Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Update a module

POST
/xeonr.updater.v1.UpdaterService/UpdateModule

Replaces the module's name and description (both are written as sent) and returns the updated module. An unknown module is NOT_FOUND; a name used by another module 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
moduleId?string
Length1 <= length
name?string
Length1 <= length <= 64
description?string
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/UpdateModule" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "module": "map[createdAt:2026-10-01T09:30:00Z description:Extra filters for the editor. id:mod_7b3e1d9a5c2f4e86 name:image-filters]"
}

Update a distribution POST

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

Update a module release's targets or notes POST

Changes the targets a module release is offered on and its notes. `target_ids` replaces the list when non-empty and is ignored when empty; `notes` is always written as sent. When the targets change, the artifacts' storage privacy follows: private unless one of the targets is public. Returns the updated module release. A rescinded 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`.