Get Information about an Upgrade:

GET /upgrades/{accountName}/upgrade/{upgradeId}

Returns information about a specified upgrade, including the target date of the upgrade, the list of devices in the upgrade and the status of the upgrade for each device.

Contents

See also:
Schedule Firmware Upgrade
View Upgrades by Status
Modify a Scheduled Upgrade
Cancel an Upgrade

Request Components

HTTP Request

GET https://thingspace.verizon.com/api/fota/v1/upgrades/{accountName}/upgrade/{upgradeId}

Resource Path and Query Parameters

You must include the account name in the path and the ID of the upgrade.

Parameter Name Data Type Description
accountName
required
string The name of the account that has the scheduled upgrade. An account name is usually numeric, and must include any leading zeros.
upgradeId
required
UUID string The UUID of the upgrade, returned by POST /upgrades when the upgrade was scheduled.

Header Parameters

The request header must contain a current ThingSpace authorization token and a current VZ-M2M session token.

Parameter Name Data Type Description
Authorization
required
string HTTP Authorization request header containing a valid Bearer token.
VZ-M2M-Token
required
string A valid session token returned by a Connectivity Management POST /session/login request.

Request Body

None

Example Request

Request the details of a scheduled upgrade for an account:

{
   "accountName":"0000123456-00001",
   "upgradeId":"e3a8d88a-04c6-4ef3-b039-89b62f91e962"
}

Success Responses

Status 200

A success response contains these upgrade details:

Parameter Name Data Type Description
id string Unique upgrade identifier.
accountName string The name (number) of the billing account.
firmwareName string The name of the firmware image that will be used for the upgrade.
firmwareTo string The name of the firmware version that will be on the devices after a successful upgrade.
startDate string ($date) The specified start date for the upgrade.
endDate string ($date) The specified end date for the upgrade.
status (campaign level) string The current campaign-level status of the upgrade, either scheduled or unscheduled.
deviceList
array A JSON object for each device that was included in the upgrade, showing the device IMEI, the status of the upgrade, and additional information about the status.
deviceId
string The device IMEI.
status (device level)
string

The status of the upgrade for this device, which may be different from the overall upgrade status.

As long as the campaign is still active (before the end date), ThingSpace will return device level status daily.

However, ThingSpace queues OMA-DM upgrades in the network indefinitely so the upgrade may actually be successful after the end date. Use the Device List API to check the latest reported firmware on the device if the end date has passed.

resultReason
string More information about the device’s upgrade status.

Example Success Response

{  
  "id":"e3a8d88a-04c6-4ef3-b039-89b62f91e962",
  "accountName":"0402196254-00001",
  "firmwareName":"FOTA_Verizon_Model-A_01To02_HF",
  "firmwareTo": "VerizonFirmwareVersion-02",
  "startDate":"2018-04-01",
  "status":"Queued",
  "deviceList": [
    {
      "deviceId": "15-digit IMEI",
      "status": "Device Accepted",
      "resultReason": "success"
    },
    {
      "deviceId": "15-digit IMEI",
      "status": "Device Accepted",
      "resultReason": "success"
    }
  ]
  "endDate": "2018-04-05"
}

Failure Responses

Status 400

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.