Exclusions

Get a consent exclusion

GET
/loc/v1/consents/{accountName}/index/{startIndex}

This consents endpoint retrieves a list of excluded devices in an account.

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

accountName*string

Account identifier in "##########-#####".

startIndex*string

Zero-based number of the first record to return.

Response Body

application/json

application/json

curl -X GET "https://example.com/loc/v1/consents/0252012345-00001/index/0"
{  "accountName": "2024009649-00001",  "allDevice": false,  "hasMoreData": false,  "totalCount": 4,  "updateTime": "2018-05-18 19:20:50.076 +0000 UTC",  "exclusion": [    "990003420535375",    "420535399000375",    "A100003861E585",    "205353759900034"  ]}