# Update the consent categories assigned to an audit 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 Endpoint: PATCH /v3/web-audits/{auditId}/consent-categories Security: API_Key ## Path parameters: - `auditId` (integer, required) Unique identification number for web audit Example: 107239 ## Request fields (application/json-patch+json): - `op` (string) The operation to be performed Enum: "add", "remove" - `path` (string) - `value` (integer) id of the item to assign ## Response 200 fields (application/json): - `consentCategories` (array, required) - `consentCategories.name` (string) - `consentCategories.notes` (string) - `consentCategories.type` (string) Enum: "approved", "unapproved" - `consentCategories.id` (integer) ID of consent category Example: 3301 - `consentCategories.isDefaultCC` (boolean) If true, this is the default consent category - `consentCategories.cmpData` (object) - `consentCategories.cmpData.cmpVendor` (string, required) Enum: "ONE_TRUST" - `consentCategories.cmpData.oneTrustCookieGroupDescription` (string) The OneTrust provided description of the group - `consentCategories.cmpData.oneTrustCookieGroupDomain` (string, required) The domain reported by OneTrust for which the consent group applies Example: "observepoint.com" - `consentCategories.cmpData.oneTrustCookieGroupId` (string, required) The OneTrust ID for the group Example: "C001" - `consentCategories.cmpData.oneTrustCookieGroupGeo` (string, required) The geographic location for which the consent group applies Example: "us, ut" - `consentCategories.cmpData.sourceUrl` (string) The full URL of the page where the CMP import was run Example: "https://example.com" - `consentCategories.updatedType` (string) Enum: "ONETRUST_IMPORT", "FILE_IMPORT", "APP_CREATE" - `consentCategories.updatedAt` (string) The last time this consent category was updated in UTC timezone ## Response 401 fields (application/json): - `timestamp` (string) - `message` (string) - `details` (string) - `validationReport` (object) ## Response 403 fields (application/json): - `timestamp` (string) - `message` (string) - `details` (string) - `validationReport` (object) ## Response 404 fields (application/json): - `timestamp` (string) - `message` (string) - `details` (string) - `validationReport` (object)