Update a distribution
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.
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= length1 <= lengthEach field is optional so a caller can change one thing without restating the rest — and, for public, so that omitting it cannot be mistaken for setting it false.
Whether target_ids above should be applied at all. Without it an empty list is ambiguous: "leave alone" or "offer on every target".
Response Body
application/json
application/json
curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/UpdateDistribution" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"distribution": "map[createdAt:2026-10-01T09:30:00Z file:map[filename:pixel-installer-linux.sh sha512:dc6d9befa2c14e8471f250a43954e83a3816e03a17c7c174be808a69ed49f5734e82efd2662d31552a6353a952b6be9f8d6151573fc614073e45efe516afd7a1 sizeBytes:24576] id:dst_1a6c9e3b7d2f5a84 label:Linux installer platform:linux public:true targetIds:[tgt_9e2b7c4a1f3d6e05] version:2.1.0]"
}Update an app's updater config POST
Replaces the app's display name, login redirect URL and `public_source` flag; all three are written as sent, so send the current values of the ones you are not changing. Branches, targets, modules and distributions are left alone. On an app with no config yet, this first save also generates its signing secret. The response is empty. 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. A config that cannot be read is an error, never replaced with a blank one.
Update a module POST
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.