Skip to main content
POST
Record contact consent

Path Parameters

accountId
integer
required

HueChat account ID

contactId
integer
required

Contact ID

Body

application/json

Consent evidence

channel
enum<string>
Available options:
whatsapp,
email
Example:

"whatsapp"

evidence
string
Example:

"Consent recorded in CRM form 8842"

expected_version
integer
Example:

0

purpose
enum<string>
Available options:
marketing,
service
Example:

"marketing"

status
enum<string>
Available options:
granted,
revoked,
unknown
Example:

"granted"

Response

OK

The response is of type object.