Premium APIsSoftware ManagementSoftware Management V3API Reference Pages V3

Assign Licenses to Devices

POST /licenses/{accountName}/assign

Assigns Firmware Over-the-air (FOTA) licenses to a list of devices. When licenses are assigned, ThingSpace Software Management begins monitoring the devices for reachability. Note: The account must have unused licenses available to assign to the devices. The total number of licenses and the number of used licenses can be found with the GET /licenses/{accountName} request.

HTTP Request

POST https://thingspace.verizon.com/api/fota/v3/firmware/licenses/{acc}/assign

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)stringAccount identifier. This is numeric and in the format of 0000123456-00001. Leading zeros must be included.

Request Body

None..

Success Responses

Status 200 Example Success Response

{
    "accountName": "0000123456-00001",
    "licCount": 2,
    "licUsedCount": 2,
    "deviceList": [
        {
            "deviceId": "15-digit IMEI",
            "status": "LicenseAssignSuccess",
            "Reason": "Device license preexisting"
        },
        {
            "deviceId": "15-digit IMEI",
            "status": "LicenseAssignSuccess",
            "Reason": "Device license preexisting"
        }
    ]
}

Success Parameters

Parameter NameData TypeDescription
accountNamestringAccount identifier.
licTotalCountintegerTotal FOTA license count.
licUsedCountintegerAssigned FOTA license count.
deviceListarray
deviceIdstringThe device's IMEI.
statusstringStatus of the license assignment. Valid values include: LicenseAssignSuccess and LicenseAssignFailure.
ReasonstringMore information about the status: "Device license preexisting" or a reason for a failure such as "Device Not Found".

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