curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/settings/zaraz/config \
-X PUT \
-H 'Content-Type: application/json' \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY" \
-d '{
"dataLayer": true,
"debugKey": "debugKey",
"settings": {
"autoInjectScript": true
},
"tools": {
"foo": {
"blockingTriggers": [
"string"
],
"component": "component",
"defaultFields": {
"foo": "string"
},
"enabled": true,
"name": "name",
"permissions": [
"string"
],
"settings": {
"foo": "string"
},
"type": "component"
}
},
"triggers": {
"foo": {
"excludeRules": [
{
"id": "id",
"match": "match",
"op": "CONTAINS",
"value": "value"
}
],
"loadRules": [
{
"id": "id",
"match": "match",
"op": "CONTAINS",
"value": "value"
}
],
"name": "name"
}
},
"variables": {
"foo": {
"name": "name",
"type": "string",
"value": "value"
}
},
"zarazVersion": 0
}'
{
"errors": [
{
"code": 1000,
"message": "message"
}
],
"messages": [
{
"code": 1000,
"message": "message"
}
],
"result": {
"dataLayer": true,
"debugKey": "debugKey",
"settings": {
"autoInjectScript": true,
"contextEnricher": {
"escapedWorkerName": "escapedWorkerName",
"workerTag": "workerTag"
},
"cookieDomain": "cookieDomain",
"ecommerce": true,
"eventsApiPath": "eventsApiPath",
"hideExternalReferer": true,
"hideIPAddress": true,
"hideQueryParams": true,
"hideUserAgent": true,
"initPath": "initPath",
"injectIframes": true,
"mcRootPath": "mcRootPath",
"scriptPath": "scriptPath",
"trackPath": "trackPath"
},
"tools": {
"foo": {
"blockingTriggers": [
"string"
],
"component": "component",
"defaultFields": {
"foo": "string"
},
"enabled": true,
"name": "name",
"permissions": [
"string"
],
"settings": {
"foo": "string"
},
"type": "component",
"actions": {
"foo": {
"actionType": "actionType",
"blockingTriggers": [
"string"
],
"data": {},
"firingTriggers": [
"string"
]
}
},
"defaultPurpose": "defaultPurpose",
"neoEvents": [
{
"actionType": "actionType",
"blockingTriggers": [
"string"
],
"data": {},
"firingTriggers": [
"string"
]
}
],
"vendorName": "vendorName",
"vendorPolicyUrl": "vendorPolicyUrl"
}
},
"triggers": {
"foo": {
"excludeRules": [
{
"id": "id",
"match": "match",
"op": "CONTAINS",
"value": "value"
}
],
"loadRules": [
{
"id": "id",
"match": "match",
"op": "CONTAINS",
"value": "value"
}
],
"name": "name",
"description": "description",
"system": "pageload"
}
},
"variables": {
"foo": {
"name": "name",
"type": "string",
"value": "value"
}
},
"zarazVersion": 0,
"analytics": {
"defaultPurpose": "defaultPurpose",
"enabled": true,
"sessionExpTime": 60
},
"consent": {
"enabled": true,
"buttonTextTranslations": {
"accept_all": {
"foo": "string"
},
"confirm_my_choices": {
"foo": "string"
},
"reject_all": {
"foo": "string"
}
},
"companyEmail": "companyEmail",
"companyName": "companyName",
"companyStreetAddress": "companyStreetAddress",
"consentModalIntroHTML": "consentModalIntroHTML",
"consentModalIntroHTMLWithTranslations": {
"foo": "string"
},
"cookieName": "cookieName",
"customCSS": "customCSS",
"customIntroDisclaimerDismissed": true,
"defaultLanguage": "defaultLanguage",
"hideModal": true,
"purposes": {
"foo": {
"description": "description",
"name": "name"
}
},
"purposesWithTranslations": {
"foo": {
"description": {
"foo": "string"
},
"name": {
"foo": "string"
},
"order": 0
}
},
"tcfCompliant": true
},
"historyChange": true
},
"success": true
}