v3 API//
- Update the consent categories assigned to an audit
Get all the consent categories assigned to an audit
Retrieve all consent categories snapshots that are applied to a specific audit run.
Reprocess consent-category for the selected auditId and runIds
Update the consent catego...
PATCH /v3/web-audits/{auditId}/consent-categories
Update the consent categories assigned to an audit. The request will be rejected if trying to assign conflicting consent category types to the same audit
Security
API_Key
PATCH
curl -i -X PATCH \
https://api.observepoint.com/v3/web-audits/107239/consent-categories \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json-patch+json' \
-d '[
[
{
"op": "add",
"path": "/-",
"value": 1
},
{
"op": "remove",
"path": "/",
"value": 2
}
]
]'Response
{ "consentCategories": [ { … } ] }