FOTA Job Executions
FetchCurrentPendingFOTAJobExecution
Fetches the pending (QUEUED or IN_PROGRESS) job execution with the earliest createdAt date. This will allow consistent FIFO (First In First Out) processing of incoming executions.
get/fota-job-executions/{deviceId}/current
Request
- Base URLhttps://api.nrfcloud.com/v1
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScripthttps://skmtc.dev/nrfcloud/apis/nrf-cloud-rest-api/docs/fota-job-executions/:deviceId/current/get.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
deviceIdstring required
This is the canonical device id used in the device certificate, and as the MQTT client id.
Example:nrf-1234567890123456789000
Query parameters
firmwareType'APP' | 'MODEM' | 'BOOT' | 'SOFTDEVICE' | 'BOOTLOADER' | 'MDM_FULL' | 'SMP' | 'CUSTOM'
Firmware types that can be specified in the device's shadow in reported.device.serviceInfo.fota_v2 and in its Elasticsearch document in the firmware.supports array.
Return only executions with the given firmware type
Response
Ok
Example response
{
"status": "SUCCEEDED",
"deviceId": "nrfsim-453330795897806100000",
"createdAt": "2020-12-09T18:34:13.472Z",
"executionId": "4d50a3ba-9573-4ec9-b362-02e2bde5aaee",
"jobDocument": {
"path": "3701edba-5bd5-4fcf-a0d1-769457a8f409/APP*c52c99d3*v1.3.0-280-g485445b6a869/AT_fast_blink.bin",
"host": "firmware.nrfcloud.com",
"firmwareType": "APP",
"fileSize": 253640,
"version": "v1.3.0-280-g485445b6a869"
},
"jobId": "f539350f-7784-470c-b0cf-c669147b0c54",
"lastUpdatedAt": "2020-12-09T18:34:18.731Z",
"tenantId": "3701edba-5bd5-4fcf-a0d1-769457a8f409",
"statusDetail": "Job Completed"
}Changes
No recorded changes to this operation across all 7 revisions of this API.