Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Create a module

POST
/xeonr.updater.v1.UpdaterService/CreateModule

Adds a module definition to the app and returns it with its new mod_ id. A name already 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
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/CreateModule" \  -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]"
}

Create a distribution POST

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

Create a draft module release POST

Creates a release of a module on a branch and returns it with its new `mrel_` id, always as a draft: upload its `.zip` artifacts, then call `PublishModuleRelease`. `min_base_version` is the lowest base-app version it runs on, and `dependencies` name other modules with optional semver constraints. Refused with `NOT_FOUND` for an unknown module, branch, target or dependency; `INVALID_ARGUMENT` for a version or `min_base_version` that is not semver on a branch that enforces it, a target on another branch, or an invalid constraint; `ALREADY_EXISTS` for a version this module already has 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`.