Allows you to associate your own usage segmentation label with a device.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
application/json
Request to associate a label to a device.
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST "https://example.com/m2m/v1/devices/actions/usagesegmentationlabels" \ -H "Content-Type: application/json" \ -d '{ "accountName": "9231221278-99990", "labels": [ { "deviceIds": [ { "id": "3029423189477699229543109876975", "kind": "EID" } ], "label": { "name": "VIN", "value": "XX1TFCFL5EA137745" } }, { "deviceIds": [ { "id": "29183120783667588118432098765864", "kind": "EID" } ], "label": { "name": "VIN", "value": "XXUZL54B5YN105457" } } ] }'{ "requestId": "ec682a8b-e288-4806-934d-24e7a59ed889"}{ "errorCode": "error code string", "errorMessage": "error message string"}The name of a billing account. An account name is usually numeric, and must include any leading zeros.
Maximum of 2,000 objects are allowed in the array.