POST /licenses/{acc}/remove
Removes FOTA licenses from a specified list of devices.
Remove unused licenses from devices. A license is unused if the device has not had a firmware upgrade since the license was assigned, and if no firmware upgrade is in progress for the device.
Note: This request is only needed for accounts that have a monthly recurring billing (MRC) subscription. Accounts with event-based billing do not need to assign or remove licenses.
POST https://thingspace.verizon.com/api/fota/v2/licenses/{acc}/remove
You must include the account name in the path.
Parameter Name | Data Type | Description |
---|---|---|
acc required |
string | The name of the account for which you want to remove licenses. An account name is usually numeric, and must include any leading zeros. |
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 . |
The request body identifies the devices from which you want to remove licenses.
Parameter Name | Data Type | Description |
---|---|---|
deviceList required |
array of IMEI strings | List of device IMEI identifiers. |
Remove FOTA licenses from three devices.
curl https://thingspace.verizon.com/api/fota/v2/licenses/$ACCOUNT/remove -H 'Authorization: Bearer $AUTH_TOKEN' -H 'VZ-M2M-Token: $M2M_TOKEN' -H 'Content-Type: application/json' -d
{
"deviceList": [
"990003425730535",
"990000473475989"
"900000000000999"
]
}
Status 200
Parameter Name | Data Type | Description |
---|---|---|
accountName | string | Account identifier |
licTotalCount | integer | Total license count. |
licUsedCount | integer | Assigned FOTA license count. |
deviceList | array of devices | IMEI device list. |
deviceList.deviceId | string | The IMEI of the device. |
deviceList.status | string | Status of the license assignment. Valid values include:
|
deviceList.resultReason | string | More information about the status, such as "Success", "Device license preexisting", or a reason for a failure, such as "Device Not Found." |
{
"accountName": "0242078689-00001",
"licCount": 9000,
"licUsedCount": 998,
"deviceList": [
{
"deviceId": "990003425730535",
"status": "Success",
"Reason": "Success"
},
{
"deviceId": "990000473475989",
"status": "Success",
"Reason": "Success"
},
{
"deviceId": "900000000000999",
"status": "Failure",
"Reason": "No license attached to device"
}
]
}
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.