- Update a consent category
Consent category status. Setting pending (on create, update or file upload) requires the pending-and-uncategorized-cc-statuses account feature, otherwise the request is rejected with 400. pending can be returned and used as a filter for any account.
Whether the category is refreshed automatically from OneTrust. Omitted keeps the stored value, so edits from clients that do not know the setting preserve it. Explicit null is rejected with 400. The resulting state must be consistent - when the setting is (or stays) true, the request's cmpData must carry the OneTrust vendor, group id, domain, geo and source URL required for refresh (a blank sourceUrl is filled from the domain), otherwise the request is rejected with 400 and nothing is written.
- ObservePoint Production APIhttps://api.observepoint.com/v3/consent-categories/{consentCategoryId}
curl -i -X PUT \
https://api.observepoint.com/v3/consent-categories/3301 \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"notes": "string",
"type": "approved",
"isDefaultCC": true,
"cmpData": {
"cmpVendor": "ONE_TRUST",
"oneTrustCookieGroupDescription": "string",
"oneTrustCookieGroupDomain": "observepoint.com",
"oneTrustCookieGroupId": "C001",
"oneTrustCookieGroupGeo": "us, ut",
"sourceUrl": "https://example.com"
},
"autoUpdateFromOneTrust": true
}'Successfully updated a consent category
Consent category status. Setting pending (on create, update or file upload) requires the pending-and-uncategorized-cc-statuses account feature, otherwise the request is rejected with 400. pending can be returned and used as a filter for any account.
{ "name": "string", "notes": "string", "type": "approved", "id": 3301, "isDefaultCC": true, "cmpData": { "cmpVendor": "ONE_TRUST", "oneTrustCookieGroupDescription": "string", "oneTrustCookieGroupDomain": "observepoint.com", "oneTrustCookieGroupId": "C001", "oneTrustCookieGroupGeo": "us, ut", "sourceUrl": "https://example.com" }, "updatedType": "ONETRUST_IMPORT", "updatedAt": "2019-08-24T14:15:22Z", "autoUpdateFromOneTrust": true }