Add or update consent across all groups.
POST https://{{contactPolicyBaseURL}}/v1/groups/*/members
Use this method to add or update consent details for the specified consumer in all groups owned by a tenant.
Request Body
{"address"=>"", "channel"=>"text/email/voice/whatsapp", "consent"=>"", "reason"=>"", "expires"=>"", "senderAddress"=>"", "metadata"=>{"keyword"=>"", "campaign"=>"", "source"=>"", "messageBody"=>""}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"updated":["\u003cstring\u003e","\u003cstring\u003e"],"ignored":[{"groupId":"\u003cstring\u003e","reason":"\u003cstring\u003e"},{"groupId":"\u003cstring\u003e","reason":"\u003cstring\u003e"}]}