Update an app's updater config
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.
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= length1 <= lengthURL that initiates an auth flow and redirects back with ?token=<updater_jwt>.
Whether the source repository is public. Controls display of commit SHA and compare links on the public download page.
Response Body
application/json
application/json
curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/UpdateConfig" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{}Rename a branch or change its versioning POST
Renames the branch and, when `disable_semver` is set, switches semver enforcement on or off; leaving `disable_semver` unset keeps the current setting. The update-check cache is cleared, so the new ordering applies to the next check. Returns the updated branch. An unknown branch is `NOT_FOUND`; a name used by another branch 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.
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`.