updateConsentDefinition

Updates the state of broadcaster’s consent definition.

📘

You can try that method by clicking here

Parameters

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)

ResultParameters

Name

Type

Description

success

boolean

Information about success of update

API Request/Response

Request

{
  "method": "updateConsentDefinition",
  "params": {
     "publisherToken": "bC4TVNJYH1WTAErOxcpjl1H7fmAKZsIK0rKKtp5TdMg0RmIg",
     "name": "broadcaster_marketing",
     "version": "1"
  },
  "jsonrpc": "2.0",
  "id": 1
}

Response

{
  "result": {
    "success": true
  },
  "id": "1",
  "jsonrpc": "2.0"
}

ErrorCodes

Code

Description

3

Invalid publisher token

23

User does not exist

25

Broadcaster is not allowed to update platform consents