Get the consent settings for the entire account or device list in an account.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
The numeric name of the account.
The IMEI of the device being queried
application/json
application/json
curl -X GET "https://example.com/devicelocations/action/consents?accountName=0000123456-00001&deviceId=900000000000009"{ "deviceList": [ [ { "id": 9000000000000009, "kind": "imei", "mdn": "10-digit phone number", "consent": 0 }, { "id": 9000000000000019, "kind": "imei", "mdn": "10-digit phone number", "consent": 0 } ] ], "accountName": "0000123456-00001", "allDeviceConsent": 1}{ "errorCode": "The type of error, such as INVALID_REQUEST.", "errorMessage": "Additional error information."}