This endpoint allows user to assign licenses to a list of devices.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
Account identifier.
application/json
License assignment.
TypeScript Definitions
Use the request body type in TypeScript.
List of devices.
application/json
application/json
curl -X POST "https://example.com/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" } ]}{ "errorCode": "error code string", "errorMessage": "error message string"}Device IMEI list.