Upload a version
Upload device software files and multilingual release notes, then save a version as a draft.
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.
Save a draft on the website
- 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. You can enter separate notes in Simplified Chinese, English, and Japanese before you select Save draft.
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 the SemVer formats below, up to 31 characters. Internal testing starts at alpha.1 and public testing at beta.1. Version numbers increase independently for each channel within a device software ID. Check available versions before uploading.
| 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 with the organization API
Get an organization credential and a device software ID. These steps save a Read Pico beta as a draft.
1. Prepare the upload
Send JSON to POST /api/authV2/organization/software/upload. The project binding determines the device. The form computes the filename, size, and SHA-256 for each selected file.
This public beta request includes one OTA file and release notes in all three languages. Use your own software ID and file metadata.
{
"firmwareId": "000000000000000000000101",
"version": "1.2.0-beta.1",
"status": "TESTING",
"artifacts": {
"ota": {
"name": "desk-clock-1.2.0-beta.1.bin",
"size": 1176976,
"sha256": "a4b13eb3a234a0446faeed2e1d07a22f52bf06b40b00e22f219e15211eed6b07"
}
},
"releaseNotes": {
"zh-Hans-CN": "提高时钟画面的刷新稳定性。",
"en-US": "Improves the reliability of clock display refreshes.",
"ja-JP": "時計表示の更新を安定させました。"
}
}/api/authV2/organization/software/uploadBefore running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1// Generating...Request body
Prop
Type
Parameters
Parameters
File metadata
Prop
Type
Use the returned uploadId to complete this upload. The uploads object contains the signed URL and headers for each file type. The upload window lasts 15 minutes. Use the returned expiresAt as the deadline.
{
"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
For each file in uploads, send a PUT to its signed URL with the headers returned in the response.
Signed upload URLBefore running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1curl --fail-with-body --request PUT \
2 --header 'x-cos-acl: private' \
3 --upload-file '{{FILE_PATH}}' \
4 '{{SIGNED_UPLOAD_URL}}'Signed upload request fields
Prop
Type
3. Complete the upload
Once the files are uploaded, submit the uploadId before expiresAt. Use the API key that prepared the upload or an access token issued to the same OAuth client. A new upload returns state: "draft" after the size and SHA-256 checks pass. Use the returned version id to publish it. If the completion request times out, retry with the same uploadId and credential.
/api/authV2/organization/software/upload/completeBefore running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1// Generating...Request body
Prop
Type
Troubleshoot uploads
| Error | What to do |
|---|---|
400 ORGANIZATION_SOFTWARE_FILE_REQUIRED | Include at least one file. A resubmission can retain an existing file or include a new one. |
400 ORGANIZATION_SOFTWARE_INVALID_VERSION | Use the version format for the selected channel. |
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 retained files exist in the original version. For new files, confirm the PUT succeeded and the byte counts and SHA-256 hashes match. |
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. |
Once you have a draft, go to Publish a version. For an API upload, keep the version id from the completion response.
Did this solve your problem?
Join our community