This endpoint allows a user to schedule a firmware upgrade for a list of devices.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
Account identifier.
application/json
Firmware upgrade information.
TypeScript Definitions
Use the request body type in TypeScript.
Firmware upgrade for devices.
application/json
application/json
curl -X POST "https://example.com/campaigns/firmware/0000123456-00001" \ -H "Content-Type: application/json" \ -d '{ "campaignName": "Smart FOTA - test 4", "firmwareName": "SEQUANSCommunications_GM01Q_SR1.2.0.0-10512_SR1.2.0.0-10657", "firmwareFrom": "SR1.2.0.0-10512", "firmwareTo": "SR1.2.0.0-10657", "protocol": "LWM2M", "startDate": "2021-09-29", "endDate": "2021-10-01", "campaignTimeWindowList": [ { "startTime": 18, "endTime": 22 } ], "deviceList": [ "15-digit IMEI" ], "autoAssignLicenseFlag": false, "autoAddDevicesFlag": false }'{ "id": "f858b8c4-2153-11ec-8c44-aeb16d1aa652", "accountName": "0000123456-00001", "campaignName": "Smart FOTA - test 4", "firmwareName": "SEQUANSCommunications_GM01Q_SR1.2.0.0-10512_SR1.2.0.0-10657", "protocol": "LWM2M", "firmwareFrom": "SR1.2.0.0-10512", "firmwareTo": "SR1.2.0.0-10657", "make": "SEQUANS Communications", "model": "GM01Q", "status": "CampaignRequestPending", "startDate": "2021-09-29", "endDate": "2021-10-01", "campaignTimeWindowList": [ { "startTime": 18, "endTime": 22 } ]}{ "errorCode": "error code string", "errorMessage": "error message string"}Campaign name.
Firmware name to upgrade to.
Old firmware version.
New firmware version.
Valid values include: LWM2M, OMA and HTTP.
"LWM2M"Campaign start date.
dateCampaign end date.
dateList of allowed campaign time windows.
Device IMEI list.
This flag, when set to true, will assign a FOTA license automatically if the device does not have one already.
this flag, when set to true, will automatically add a device of the same make and model to a campaign.