This consents endpoint sets a new exclusion list.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
*/*
Request to update account consent exclusion list.
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST "https://example.com/consents" \ -H "Content-Type: */*" \ -d '<accountName>1234567890-00001</accountName> <type>replace</type> <allDevice>false</allDevice> <exclusion>980003420535573</exclusion> <exclusion>375535024300089</exclusion> <exclusion>A100003861E585</exclusion>'{ "success": true}{ "errorCode": "INVALID_PARAMETER", "errorMessage": "UWS verification failure (Could not find account {account}.)"}Account identifier in "##########-#####".
Exclude all devices or not.
The change to make: append or replace.
Device ID list.