Premium APIsSoftware ManagementSoftware Management V3API Reference Pages V3

Get Upgrade Information

GET /campaigns/{accountName}/{campaignId}

Returns information about a specified upgrade, including the target date of the upgrade. The upgrade states are listed as follows: CampaignRequestPending: The upgrade request has been accepted but is not scheduled yet. If any parameter checks fail, the state changes to CampaignRequestFailed. CampaignQueued: The upgrade request has passed a campaign eligibility check and campaign parameters validation. The upgrade is in the queue waiting to be scheduled. The campaign can be cancelled if it is in Queued status and if it is before the Start Date, which becomes CampaignCancelled state. If the campaign is deleted after the start date, that becomes the CampaignAborted state. CampaignFailed: The campaign scheduling API call has failed. CampaignScheduled: The upgrade is scheduled. This appears before the campaign start date. After the start date has passed, and the upgrade is in progress, The campaign can still be aborted. Some devices may have already started or completed the upgrade. Upgrades on remaining devices might not complete the upgrade. CampaignEnded: The campaign end date has passed. No more devices are allowed to upgrade if they have checked in before the campaign end date.

HTTP Request

GET https://thingspace.verizon.com/api/fota/v3/campaigns/{accountName}/{campaignId}

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 usually numeric, and must include any leading zeros.
campaignId (required)stringSoftware upgrade identifier, returned in the "id" value of the POST /{campaigns}/{accountName} response when the upgrade was scheduled.

Request Body

None

Success Responses

Status 200 Example Success Response

{
    "id": "f858b8c4-2153-11ec-8c44-aeb16d1aa652",
    "accountName": "0642233522-00001",
    "campaignName": "Smart FOTA",
    "protocol": "LWM2M",
    "make": "SEQUANS Communications",
    "model": "GM01Q",
    "status": "CampaignPreScheduled",
    "startDate": "2021-09-29",
    "endDate": "2021-10-01",
    "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",
    "timeWindowList": [
        {
            "startTime": 18,
            "endTime": 22
        }
    ]
    "autoAssignLicenseFlag":"false",
    "autoAddDevicesFlag":"false"
}

Success Parameters

Parameter NameData TypeDescription
idstringThe campaign name. This is a 32 or 34-bit UUID.
accountNamestringThe billing account number.
campaignNamestringThe campaign name.
firmwareNamestringThe name of the firmware which is being upgraded.
protocolstringThe protocol of the firmware distribution: LWM2M.
makestringFOTA make of the device.
modelstringFOTA model of the device.
statusstringCampaign level status.
firmwareFromstringThe name of the old firmware on the device.
firmwareTostringThe name of the new firmware being upgraded to.
startDatestring ($date)Campaign start date.
endDatestring ($date)Campaign end date.
campaignTimeWindowListarray
startTimeintegerStart hour in range [0-23], current hour >= startTime. When the current hour falls between the startTime and the endTime, the campaign starts.
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 will 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. Note this feature requires autoAssignLicenseFlag also to be set to true. **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