Upload and publish versions
Upload device software on the website or through the organization API, publish test versions, and submit stable versions for review.
On the Dot. website, open My organizations → Field Lab → Software. You need organization membership and a device software ID. Prepare an OTA .bin file built for the device bound to your project.
Upload and publish the public beta
- Select Upload version and choose
Desk Clock. - Choose Public testing and enter
1.2.0-beta.1. - Select
desk-clock-1.2.0-beta.1.binin the OTA field, add release notes if useful, and select Save draft. - Open the draft and select Publish version. Once the version is live, use
TESTINGto query it and get its OTA download URL.
Files and version numbers
Upload at least one software file per version. Each file can be up to 32 MiB. Release notes are optional. Include an OTA application image to return an OTA download in the device query.
| File | Format | Use |
|---|---|---|
| Separate flash package | .tgz, .tar.gz | Flash multiple images at their specified addresses. |
| Complete flash image | .bin | Initial flashing or device recovery. |
| OTA application image | .bin | Update installed software. |
Use SemVer with up to 31 characters. Version numbers increase independently for each channel within a device software ID.
| Channel | API value | Example | How it goes live |
|---|---|---|---|
| Internal testing | ALPHA | 1.2.0-alpha.1 | Publish from the draft. |
| Public testing | TESTING | 1.2.0-beta.1 | Publish from the draft. |
| Stable release | RELEASED | 1.2.0 | Submit to Dot. for review. Approval publishes the version. |
Upload and publish with the organization API
Get an organization credential and a device software ID. These forms walk through publishing a Read Pico beta.
1. Prepare the upload
Enter the version and release channel, then select the software files. The form calculates each file’s size and SHA-256 and sends them in artifacts with the file name. A new version needs at least one file.
/api/authV2/organization/software/uploadThe response contains a signed URL and headers for each file. Use expiresAt as the upload deadline. The default window is 15 minutes. An excerpt follows.
{
"uploadId": "000000000000000000000102",
"expiresAt": "2030-01-01T00:15:00.000Z",
"uploads": {
"ota": {
"url": "https://uploads.example.com/desk-clock-1.2.0-beta.1.bin?signature=example",
"headers": {
"x-cos-acl": "private"
}
}
}
}2. Upload the file
Copy the file’s url from uploads, select the same file you prepared, and send the PUT request. Repeat for each file. The form adds the x-cos-acl: private header from the upload response.
Signed upload URL3. Complete the upload
After all uploads succeed, enter the uploadId before expiresAt using the API key or OAuth client that prepared the upload. The server verifies file sizes and SHA-256 hashes, then returns a draft and version id.
/api/authV2/organization/software/upload/complete4. Publish the version
Enter the device software ID and the draft’s version id. Alpha and beta releases return state: "published". Stable submissions return state: "pending". You can check the review status.
/api/authV2/organization/software/publishOnce the beta is live, query the TESTING channel for its OTA download URL.
Edit and resubmit
If a stable version enters the rejected state, get its details to read reviewReason and copy reviewId. Keep the original version number and IDs, then choose which files to keep or replace. If you are keeping the existing files, go straight from preparation to confirmation. Completing the upload resubmits the original version for review.
/api/authV2/organization/software/uploadTroubleshoot upload and publishing
| Error | What to do |
|---|---|
400 ORGANIZATION_SOFTWARE_UPLOAD_EXPIRED | Use the API key or OAuth client that prepared the upload. Prepare a new upload if expiresAt has passed. |
400 ORGANIZATION_SOFTWARE_FILE_UNAVAILABLE | Check that every PUT succeeded and verify the byte counts and SHA-256 hashes. |
409 ORGANIZATION_SOFTWARE_VERSION_UNAVAILABLE | Check version numbers for this channel and choose an available version. |
409 ORGANIZATION_SOFTWARE_PROJECT_ARCHIVED | Restore the software ID on the website and try again. |
Review and distribution states
- A stable draft moves to Pending review when you select Submit for review. Select Withdraw submission to return it to draft.
- When the status is Changes requested, read the review feedback and select Edit and resubmit. You can update the notes, keep or replace files, and resubmit the same version.
- A Live version appears in public version queries. If it has an OTA file, the response includes
ota.downloadUrlfor signed downloads. Select Disable this version to pause distribution. You can publish it again when it meets the current publishing conditions. - A Revoked version stops being distributed and its download endpoint stops issuing signed URLs. Check the upload form for version numbers that can be reused for the same device software ID and channel.
Did this solve your problem?
Join our community