Publish Script to Website

Use this API to publish the script configuration options for the specified website.

πŸ‘

For more information, see Publishing and Implementing Cookie Consent Scripts.

Query Params
string
required

ID of the webiste or URL of the website.

string

Type of the script. It can be test or prod/production. test publishes test script and prod/production - publishes production script. If nothing is provided by the user, both production and test scripts will be published.

Body Params

Publish Request Details

boolean
Defaults to false

Auto-blocking leverages an additional script that must be added to the website to block tracking technologies based on the source setting them. Setting this flag to ’True’ will indicate this script should be published as well. If not specified, this is assumed β€˜False’.

boolean
Defaults to false

By default, this flag is β€˜False’. Setting to ’True’ indicates to the auto-blocking script to automatically block known trackers.

boolean
Defaults to true

Indicates whether to automatically detect the language of the website visitor. By default this is ’True’. If not specified, this will default to the last time it was published.

boolean
Defaults to false

Indicates the script should detect the website visitors langauge based on the webpages language.

boolean
Defaults to true

Indicates the script should detect the website visitors langauge based on their browser language. By default this is ’True’.

languages
array of strings
Defaults to null

Only required if β€˜publishIndividualLanguages=’True’. Indicates which languages to publish.

languages
boolean
Defaults to false

By default, this flag is β€˜False’. Setting to ’True’ indicates you only wish to publish a subset of langauges.

boolean
Defaults to false

Indicates that website visitors should be reprompted with the Consent Management Platform. By default, this is set to β€˜False’.

boolean
Defaults to false

Indicates the banner is manually invoked on the page and should be suppressed upon on initial load. Usually used for SPAs. By default, this flag is β€˜False’.

boolean
Defaults to false

Indicates the pref. Center is fetched only upon website visitor interaction with the banner. By default, this flag is β€˜False’.

Responses

401

Unauthorized

403

Forbidden

404

Not Found

Language
Credentials
OAuth2
Missing 1 required scope
Response
Choose an example:
application/json
*/*