Device Management

Allow you to associate a label to a device

POST
/m2m/v1/devices/actions/usagesegmentationlabels

Allows you to associate your own usage segmentation label with a device.

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

Request Body

application/json

Request to associate a label to a device.

Request to associate a label to a device.

accountName*string

The name of a billing account. An account name is usually numeric, and must include any leading zeros.

labels*

Maximum of 2,000 objects are allowed in the array.

Response Body

application/json

application/json

curl -X POST "https://example.com/m2m/v1/devices/actions/usagesegmentationlabels" \  -H "Content-Type: application/json" \  -d '{    "accountName": "1223334444-00001",    "labels": {      "devices": [        {}      ]    }  }'
{  "requestId": "ec682a8b-e288-4806-934d-24e7a59ed889"}