Software Management Licenses V2

Assign FOTA licenses to devices

Deprecated

POST
/fota/v2/licenses/{account}/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

account*string

Account identifier.

Request Body

*/*

License assignment.

License assignment.

accountName?string

Account name.

deviceList*array<string>

Device IMEI list.

Response Body

application/json

application/json

curl -X POST "https://example.com/fota/v2/licenses/0242078689-00001/assign" \  -H "Content-Type: */*" \  -d '<deviceList>990003425730524</deviceList>  <deviceList>990000473475967</deviceList>'
{  "accountName": "0242078689-00001",  "licTotalCount": 1000,  "licUsedCount": 502,  "deviceList": [    {      "deviceId": "990003425730524",      "status": "Success",      "resultReason": "Success"    },    {      "deviceId": "990000473475967",      "status": "Failure",      "resultReason": "Device does not exist."    }  ]}