Search...
Generate a test token to explore our APIs
Update Consent Policy
Developer Preview
Updates a site's consent policy.
Authorization
This endpoint requires an authorization header - pass the access token from the OAuth installation flow.
Permissions
This endpoint requires the Manage Consent Policy permission scope.
POST
https://www.wixapis.com/site-properties/v4/properties/policy
Body Params
NAME
TYPE
DESCRIPTION
consentPolicy
object
Cookie policy the site owner defined for their site (before the users interacts with/limits it).
Response Object
Returns an empty object.
Status/Error Codes
The response will include an HTTP status code.
Was this helpful?
Update site consent policy
Request
curl
Copy Code
1curl -X POST \2 'https://www.wixapis.com/site-properties/v4/properties/policy'3 -H 'Content-Type: application/json' \4 -H 'Authorization: <AUTH>' \5 --data-binary '{6 "consentPolicy": {7 "essential": false,8 "functional": true,9 "analytics": false,10 "advertising": true,11 "dataToThirdParty": true12 }13 }'
Response
json
1{}