Updates the state of broadcaster’s consent definition.
Name | Type | Description |
---|
publisherToken* | string | Your publisher token |
name* | string | Consent name (one of: broadcaster_terms, broadcaster_marketing) |
version | string | Unique version identifier for the consent text |
value | string | The value of the consent in its current version (URL for terms/privacy/broadcaster_terms, text for broadcaster_marketing) |
Name | Type | Description |
---|
success | boolean | Information about success of update |
{
"method": "updateConsentDefinition",
"params": {
"publisherToken": "bC4TVNJYH1WTAErOxcpjl1H7fmAKZsIK0rKKtp5TdMg0RmIg",
"name": "broadcaster_marketing",
"version": "1"
},
"jsonrpc": "2.0",
"id": 1
}
{
"result": {
"success": true
},
"id": "1",
"jsonrpc": "2.0"
}
Code | Description |
---|
3 | Invalid publisher token |
23 | User does not exist |
25 | Broadcaster is not allowed to update platform consents |