Premium APIsSoftware ManagementSoftware Management V1API Reference V1

Get information about an upgrade

Get Information about an Upgrade:

GET /upgrades/{account}/upgrade/{upgradeId}

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

HTTP Request

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

Resource Path and Query Parameters

The account name must be included in the path and the ID of the upgrade.

Parameter NameData TypeDescription
account (required)stringThe name of the account that has the scheduled upgrade. An account name is usually numeric, and must include any leading zeros.
upgradeId (required)UUID stringThe 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 NameData TypeDescription
Authorization (required)stringHTTP Authorization bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token: VZ-M2M-Token: {M2Mtoken}
Content-Type (required)stringMust be application/json Content-Type: application/json

Request Body

None.

Example Request

Request the details of a scheduled upgrade for an account:

curl https://thingspace.verizon.com/api/fota/v1/upgrades/$ACCOUNT/upgrade/$UPGRADE_ID  -H 'Authorization: Bearer $AUTH_TOKEN' -H 'VZ-M2M-Token: $M2M_TOKEN'

Success Responses

Status 200

A success response contains these upgrade details:

Parameter NameData TypeDescription
idstringUnique upgrade identifier.
accountNamestringThe name (number) of the billing account.
firmwareNamestringThe name of the firmware image that will be used for the upgrade.
firmwareTostringThe name of the firmware version that will be on the devices after a successful upgrade.
startDatestringThe intended start date for the upgrade.
status (campaign level)stringThe current campaign-level status of the upgrade, either scheduled or unscheduled.
deviceListarray of objectsA 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.
deviceIdstringThe device IMEI.
status (device level)stringThe status of the upgrade for this device, which may be different from the overall upgrade status. If within one day of the start date the campaign fails, this status will show failure. However, ThingSpace queues OMA-DM upgrades in the network indefinitely so the upgrade may actually be successful. Use the Device List API to check the latest reported firmware on the device.
resultReasonstringMore information about the device’s upgrade status.
autoAssignLicenseFlagbooleanValid values include: True and False:
autoAddDevicesFlagbooleanValid values include: True: and False:

Example Success Response

{  
  "id":"60b5d639-eeee-ffff-gggg-069bd94c95bf",
  "accountName":"0000123456-00001",
  "firmwareName":"FOTA_Verizon_Model-A_01To02_HF",
  "firmwareTo": "VerizonFirmwareVersion-02",
  "startDate":"2018-04-01",
  "status":"Queued",
  "deviceList": [
    {
      "deviceId": "900000000000002",
      "status": "Device Accepted",
      "resultReason": "success"
    },
    {
      "deviceId": "900000000000003",
      "status": "Device Accepted",
      "resultReason": "success"
    }
  ],
  "autoAssignLicenseFlag": true,
  "autoAddDevicesFlag": true
}

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.

On this page