Premium APIsSoftware ManagementSoftware Management V3API Reference Pages V3

Remove FOTA Licenses

POST /licenses/{accountName}/remove

Removes unused FOTA licenses from a specified list of 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. When licenses are removed, the ThingSpace Software Management ends monitoring the devices for reachability. Note: This request is only needed for accounts that have a monthly recurring charge (MRC) subscription. Accounts with event-based billing do not need to assign or remove licenses.

HTTP Request

POST https://thingspace.verizon.com/api/fota/v3/licenses/{accountName}/remove

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

You must include the accountName in the path.

Parameter NameData TypeDescription
accountName (required)stringThe name of the account for which you want to remove licenses. An account name is numeric, and must include any leading zeros.

Request Body

The request body provides the device list.

Parameter NameData TypeDescription
deviceList (required)arrayThe IMEIs of the devices to remove licenses from.
Example Request:
Remove FOTA licenses from three devices -
{
  "deviceList": [
    "15-digit IMEI",
    "15-digit IMEI",
    "15-digit IMEI"
  ]
}

Success Responses

Status 200 Example Success Response

{
  "accountName": "0000123456-00001",
  "licCount": 9000,
  "licUsedCount": 998,
  "deviceList": [
    {
      "deviceId": "15-digit IMEI",
      "status": "Success",
      "resultReason": "Success",
      "updatedTime": "2021-06-10T15:13:30.941Z",
      "recentAttemptTime": "2021-06-10T15:13:30.941Z",
      "nextAttemptTime": "2021-06-10T15:13:30.941Z"    },
    {
      "deviceId": "15-digit IMEI",
      "status": "Success",
      "resultReason": "Success"
      "updatedTime": "2021-06-10T15:13:30.941Z",
      "recentAttemptTime": "2021-06-10T15:13:30.941Z",
      "nextAttemptTime": "2021-06-10T15:13:30.941Z"    },
    {
      "deviceId": "15-digit IMEI",
      "status": "Failure",
      "resultReason": "No license attached to device"
      "updatedTime": "2021-06-10T15:13:30.941Z",
      "recentAttemptTime": "2021-06-10T15:23:30.941Z",
      "nextAttemptTime": "2021-06-11T15:13:30.941Z"    }
  ]
}

Success Parameters

Parameter NameData TypeDescription
accountNamestringAccount identifier.
licTotalCountintegerTotal FOTA license count.
licUsedCountintegerAssigned FOTA license count.
deviceListarray
deviceIdstringthe device IMEI.
statusstringStatus of the license removal. Valid values include: Success or Failure.
resultReasonstringMore information about the status, such as "Success" or a reason for a failure, such as "Device Not Found">
updatedTimestring ($date-time)Time of the most recent status.
recentAttemptTimestring ($date-time)The time of the most recent attempt to remove a FOTA license.
nextAttemptTimestring ($date-time)The next time the license will attempt to be removed.

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