Set user’s consent state. The state will be saved in the database with current date and the information about last consent version they agreed to. The broadcaster is obliged to increment (or change) the consent version in the dashboard every time they update their terms & conditions or marketing agreement.
Parameters
Name
Type
Description
publisherToken*
string
Your publisher token
customerEmail*
string
The email address of the user you’re setting the consent for
name*
string
Consent name (one of: terms, privacy, broadcaster_terms, broadcaster_marketing)
state*
string
User’s consent state (one of: accepted, declined)
version*
string
Consent definition version (must match the current consent definition version, no possibility of agreeing to past definitions)