Premium APIsSoftware ManagementSoftware Management V3API Reference Pages V3

Schedule a Firmware Upgrade

POST /campaigns/firmware/{accountName}

This API allows you to schedule a firmware upgrade for devices. The response includes an upgrade ID that is included in all callback notifications about the status of the upgrade that you can use to check the status of the upgrade or cancel it. Note: A synchronous response with no errors means that the request has been accepted, but does not mean that the upgrade has been scheduled. If a callback URL has been registered, ThingSpace sends callback notification messages each time the status of an upgrade changes. If the account has a monthly recurring charge (MRC) subscription for the Software Management Services, a license must be assigned to each device to upgrade before an upgrade for those devices.can be scheduled

HTTP Request

POST https://thingspace.verizon.com/api/fota/v3/campaigns/firmware/{accountName}

Header Parameters

The request header must contain a current ThingSpace authorization token, set the content to "JSON" and a current VZ-M2M-session token.

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization request header containing a valid Bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token returned by a Connectivity Management POST /session/login request.
Content-Type (required)stringMust be application/json.

Request Parameters

Parameter NameData TypeDescription
accountName (required)stringThe billing name of the account. An account name is numeric, and must include any leading zeros.

Request Body

The request body identifies the devices that you want to upgrade.

Parameter NameData TypeDescription
campaignNamestringThe campaign name.
firmwareName (required)stringThe name of the firmware being upgraded.
firmwareFrom (required)stringThe name of the old firmware on the device.
firmwareTo (required)stringThe name of the new firmware being upgrading to.
protocol (required)stringValid values include: LWM2M.
startDate (required)string ($date)Campaign start date.
endDate (required)string ($date)Campaign end date.
campaignTimeWindowList (optional)array
startTime (required)integerStart hour in range [0-23], current hour >= startTime. When the current hour falls between the startTime and the endTime, the campaign starts.
endTime (required)integerEnd hour in range [1-24], current hour < endTime. The endTime must be at least 4 hours after the startTime.
deviceList (required)arrayDevice IMEI list.
autoAssignLicenseFlag (optional)booleanValid values include: True: Any devices included in the device list which does not have a license will automatically assign a FOTA license assuming there are enough FOTA licenses available. False: Only devices included in the device list with a license be campaigned.
autoAddDevicesFlag (optional)booleanValid values include: True: Beyond the devices included on the device list, any other device(s) which matches the eligibility criteria (same make, model, current firmware, protocol, billing account) will automatically be added to the campaign list during the life of the campaign. False: Do not automatically add devices to the campaign. Note: This flag can be set to true or false when the autoAssignLicense flag is true and must be set to false when the autoAssignLicense flag is false.
Example Request:
{
   "campaignName":"Smart FOTA",
   "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"
}

Success Responses

Status 200

{
    "id": "f858b8c4-2153-11ec-8c44-aeb16d1aa652",
    "accountName": "0000123456-00001",
    "campaignName": "Smart FOTA",
    "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",
   "autoAssignLicenseFlag":"false",
   "autoAddDevicesFlag":"false"
}

Success Parameters

Parameter NameData TypeDescription
idstringThe campaign identifier. This is a 32 or 34-bit UUID.
accountNamestringThe billing account number.
campaignNamestringThe campaign name.
firmwareNamestringThe name of the firmware being upgraded.
protocolstringValid values include: LWM2M.
makestringFOTA make of the device.
modelstringFOTA model of the device.
firmwareFromstringThe name of the old firmware on the device.
firmwareTostringThe name of the new firmware to which you are upgrading.
statusstringCampaign level status.
startDatestring ($date)Campaign start date.
endDatestring ($date)Campaign end date.
campaignTimeWindowListarray
startTimeintegerStart hour in range [0-23], current hour >= startTime.
endTimeintegerEnd hour in range [1-24], current hour < endTime. The endTime must be at least 4 hours after the startTime.
autoAssignLicenseFlagbooleanValid values include: True: Any devices included in the device list which does not have a license will automatically assign a FOTA license assuming there are enough FOTA licenses available. False: Only devices included in the device list with a license be campaigned.
autoAddDevicesFlagbooleanValid values include: True: Beyond the devices included on the device list, any other device(s) which matches the eligibility criteria (same make, model, current firmware, protocol, billing account) will automatically be added to the campaign list during the life of the campaign. False: Do not automatically add devices to the campaign.

Failure Responses

All error messages are returned in this format:

 { 
   "errorCode": "error code string",
   "errorMessage": "error message string"
}

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

On this page