Software Management Licenses V3

Assign FOTA licenses to devices

POST
/fota/v3/licenses/{acc}/assign

This endpoint allows user to assign licenses to a list of devices.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Path Parameters

acc*string

Account identifier.

Request Body

application/json

License assignment.

License assignment.

deviceList*array<string>

Device IMEI list.

Response Body

application/json

application/json

curl -X POST "https://example.com/fota/v3/licenses/0000123456-00001/assign" \  -H "Content-Type: application/json" \  -d '{    "deviceList": [      "15-digit IMEI",      "15-digit IMEI"    ]  }'
{  "accountName": "0000123456-00001",  "licUsedCount": 2,  "licCount": 1000,  "deviceList": [    {      "deviceId": "15-digit IMEI",      "status": "UpgradePending",      "resultReason": "Upgrade pending, the device upgrade is estimated to be scheduled for 06 Oct 22 18:05 UTC",      "updatedTime": "2022-08-05T21:05:27.129Z",      "recentAttemptTime": "2022-10-05T21:05:01.19Z",      "nextAttemptTime": "2022-10-06T18:35:00Z"    }  ]}