- Create 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. When omitted, defaults to true for a OneTrust import (a cmpData with cmpVendor ONE_TRUST) and false otherwise. Explicit false opts a OneTrust import out. true is rejected with 400 unless cmpData carries the OneTrust vendor, group id, domain, geo and source URL required for refresh (a blank sourceUrl is filled from the domain). Explicit null is rejected with 400.
- ObservePoint Production APIhttps://api.observepoint.com/v3/consent-categories
curl -i -X POST \
https://api.observepoint.com/v3/consent-categories \
-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 created 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 }