Query published versions from a server
Use an organization credential to check which software version is live and get its OTA download information.
Use POST /api/authV2/organization/software/query in a release script or server to check your organization’s published Read Pico software. Have an organization credential and a device software ID from your organization ready. Send firmwareId to select the project and its device.
/api/authV2/organization/software/queryBefore running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1// Generating...Request body
Prop
Type
Default
RELEASED
Query result
POST /query returns the same organization software version information as the device query. The default status is RELEASED. Set version to look up a specific published version. Pass currentVersion to compare with an installed version. If the response has an OTA file, use ota.downloadUrl to download and verify it.
For a full flash image or split flash package, read the corresponding URL from downloads in the version list or details. See download files for wired flashing.
For HTTP 404, check that the firmwareId belongs to a Read Pico project in your organization. For published queries, also check that the channel and requested version are available for distribution.
Did this solve your problem?
Join our community