Scripts
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.
put/v2/websites/publish
Query parameters
websitestring required
ID of the webiste or URL of the website.
scriptTypestring
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.
Request body
Example request
{
"languageDetectionEnabled": true,
"languageDetectionVisitor": true
}Response
OK
Example response
{
"consentPolicyName": "EU GeoRule",
"publishVersion": "6.8.0",
"publishedDate": "2002-05-31T14:17:26.598Z",
"responseMsg": "Publish initiated successfully",
"userName": "123e4567-e89b-12d3-a456-426614174000"
}