Confirm a distribution file upload
Completes the upload and makes it the distribution's file, recording the filename, size and SHA-512 as sent; the service does not re-hash them. Uploading under the filename the entry already has replaces the file in place; a different filename deletes the previous file. Any external url is cleared, since the hosted file now wins. Returns the updated distribution.
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.
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= length1 <= length1 <= length1 <= lengthint640 < value1 <= lengthResponse Body
application/json
application/json
curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/ConfirmDistributionFile" \ -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]"
}Confirm an artifact upload POST
Completes an upload started with `UploadArtifact`: stores the file under the release's platform directory and records its checksums in the release manifest. The stored file is private unless the release is on a public target. For a binary `<goos>-<goarch>` artifact the service reads the stored bytes back and computes their SHA-256 and SHA-512 itself; if a sent `sha512` or `sha256` does not match, the upload is removed and the call fails. The returned artifact carries the size and checksums as recorded. A published release is `FAILED_PRECONDITION`; an unknown release is `NOT_FOUND`. Pass `part_etags` for a multipart upload. 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`.
Confirm a module artifact upload POST
Completes an upload started with `UploadModuleArtifact`: stores the `.zip` under the module release's platform directory and records its SHA-512 in the release manifest. The stored file is private unless the module release is on a public target. Returns the artifact's platform, filename and SHA-512. 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`.