updateConsentPolicy( )
Developer Preview
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a site's consent policy.
The updateConsentPolicy()
function returns a Promise that resolves when the site's consent policy is updated.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Consent Policy
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
consentPolicyConsentPolicyRequired
Default consent policy defined by the site owner. Can be further limited by site visitors.
Was this helpful?
Yes
No