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/api/cmp/v1/domains/publish
Query parameters
scriptType'production' | 'test'
The type of script either production or test.
websitestring required
The website domain to target for the operation.
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"
}