GET /reports/{acc}/devices/{deviceId}
Returns the software upgrade history of the specified device IMEI.
GET https://thingspace.verizon.com/api/fota/v3/reports/{acc}/devices/{deviceId}
You must include the account name and the device IMEI in the path.
Parameter Name | Data Type | Description |
---|---|---|
acc required |
string | The name of the account. An account name is usually numeric, and must include any leading zeros. |
deviceId required |
string | The IMEI of the device being queried for its upgrade history. |
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. |
Content-Type required |
string | Must be application/json . |
None.
Request the upgrade history of a device:
curl GET https://thingspace.verizon.com/api/fota/v3/reports/0000123456-00001/devices/{15-digit IMEI}
-H 'VZ-M2M-Token: {M2M token}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {bearer token}' \
Status 200
A success response contains an array of software upgrades that the device has had, and each upgrade object has these details:
Parameter Name | Data Type | Description |
---|---|---|
deviceId | string | The IMEI of the device. |
id | UUID string | The unique identifier for the upgrade. |
accountName | string | The name (number) of the billing account |
firmwareName | string | The firmware name. |
firmwareFrom | string | The current firmware |
firmwareTo | string | The firmware name being upgraded to |
startDate | string | Software upgrade start date |
status | string | The status of the upgrade for this device, either UpgradeSuccess or UpgradeFailed. |
reason | string | More information about the status. |
[
{
"deviceId": "15-digit IMEI",
"campaignId": "252d7ffc-7e35-11ec-931d-76f56843c393",
"accountName": "0000123456-00001",
"firmwareName": "SEQUANSCommunications_GM01Q_SR1.2.0.0-10657_SR1.2.0.0-10512",
"firmwareFrom": "SR1.2.0.0-10657",
"firmwareTo": "SR1.2.0.0-10512",
"startDate": "2022-01-25",
"reportUpdatedTime": "2022-01-26 03:45:01.608 +0000 UTC",
"status": "UpgradeSuccess",
"reason": "Upgrade completed successfully"
},
{
"deviceId": "15-digit IMEI",
"campaignId": "8f5e9a4a-6ce2-11ec-ace7-3ea293843397",
"accountName": "0000123456-00001",
"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",
"startDate": "2022-01-03",
"reportUpdatedTime": "2022-01-04 02:45:00.67 +0000 UTC",
"status": "UpgradeSuccess",
"reason": "Upgrade completed successfully"
},
{
"deviceId": "15-digit IMEI",
"campaignId": "6f5890ee-61ac-11ec-ad90-4ef948cff74b",
"accountName": "0000123456-00001",
"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",
"startDate": "2021-12-20",
"reportUpdatedTime": "2021-12-20 16:00:00.268 +0000 UTC",
"status": "DeviceRejected",
"reason": "Device scheduled for firmware upgrade previously, needs to be completed before another upgrade is scheduled."
},
{
"deviceId": "15-digit IMEI",
"campaignId": "172e9ffa-5c42-11ec-b4e7-9ecd0c925d89",
"accountName": "0000123456-00001",
"firmwareName": "SEQUANSCommunications_GM01Q_SR1.2.0.0-10657_SR1.2.0.0-10512",
"firmwareFrom": "SR1.2.0.0-10657",
"firmwareTo": "SR1.2.0.0-10512",
"startDate": "2021-12-13",
"reportUpdatedTime": "2021-12-14 23:18:53.092 +0000 UTC",
"status": "UpgradeFailed",
"reason": "Upgrade failed, processing is not allowed after campaign end date 14 Dec 21 00:00 UTC"
},
{
"deviceId": "15-digit IMEI",
"campaignId": "9a77091d-4bd5-11ec-9088-2ad91a9c8d05",
"accountName": "0000123456-00001",
"firmwareName": "Generic_Sensor_SR1.2.0.0-10657_SR1.2.0.0-10512",
"firmwareFrom": "SR1.2.0.0-10657",
"firmwareTo": "SR1.2.0.0-10512",
"startDate": "2021-11-22",
"reportUpdatedTime": "2021-11-22 21:12:16.765 +0000 UTC",
"status": "DeviceRejected",
"reason": "Device make/model do not meet software prerequisites."
}
]
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.