updateConsentDefinition

Updates the state of broadcaster’s consent definition.

📘

You can try that method by clicking here

Parameters

NameTypeDescription
publisherToken*stringYour publisher token
name*stringConsent name (one of: broadcaster_terms, broadcaster_marketing)
versionstringUnique version identifier for the consent text
valuestringThe value of the consent in its current version (URL for terms/privacy/broadcaster_terms, text for broadcaster_marketing)

ResultParameters

NameTypeDescription
successbooleanInformation 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

CodeDescription
3Invalid publisher token
23User does not exist
25Broadcaster is not allowed to update platform consents