OneTrust Consent Groups API

APIs for managing Consent Groups and their configurations.

Business capability
Privacy & Data Protection Management BC-130.50

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/consent/v2/consent-groups List consent groups · Get List of Consent Groups #
Ask an LLM
“What consent groups have been set up in OneTrust?”
“Can I find a consent group by its name?”
Tell an agent
List all consent groups.
Find the consent group named {name}.
POST /api/consent/v2/consent-groups Create a consent group · Create Consent Group #
Ask an LLM
“How do I create a new consent group for households or accounts?”
“What happens if I don't give a consent group an external name?”
Tell an agent
Create a consent group called {name}.
Create consent group {name} with external name {externalName} and description {description}.
GET /api/consent/v2/consent-groups/settings Get purpose status priority scores · Get Priority Scores for Purpose Statuses #
Ask an LLM
“What priority score does each purpose status have for consent groups?”
“Which purpose status wins when group members disagree on consent?”
Tell an agent
Show the current priority scores for purpose statuses.
Get the consent group settings that rank purpose statuses.
PUT /api/consent/v2/consent-groups/settings Update purpose status priority scores · Update Priority Scores for Purpose Statuses #
Ask an LLM
“How do I change which purpose status takes precedence in a consent group hierarchy?”
“Can I reorder priority scores used to calculate a purpose's effective status?”
Tell an agent
Set the purpose status priority rules to {statusPriorityRules}.
Update consent group priority scores with {statusPriorityRules}.
GET /api/consent/v2/consent-groups/{consentGroupGuid} Get a consent group · Get Consent Group #
Ask an LLM
“How do I view one consent group's purpose rules and members?”
“What data subjects or child groups belong to a specific consent group?”
Tell an agent
Show consent group {consentGroupGuid}.
Get the hierarchy and purpose rules of consent group {consentGroupGuid}.
POST /api/consent/v2/consent-groups/{consentGroupGuid}/consent-groups Nest consent groups under a parent group · Add Consent Groups to Parent Consent Group #
Ask an LLM
“How do I make consent groups children of a parent consent group?”
“Can a consent group belong to more than one parent group?”
Tell an agent
Add consent groups {consentGroupIds} as children of group {consentGroupGuid}.
Nest child groups {consentGroupIds} under parent consent group {consentGroupGuid}.
DELETE /api/consent/v2/consent-groups/{consentGroupGuid}/consent-groups Remove child consent groups from a parent · Remove Consent Groups from Parent Consent Group #
Ask an LLM
“How do I detach child consent groups from their parent group?”
“Can I unlink several child consent groups in one call?”
Tell an agent destructive · confirm first
Remove child groups {consentGroupIds} from parent consent group {consentGroupGuid}.
Unlink child consent groups {consentGroupIds} from {consentGroupGuid}.
POST /api/consent/v2/consent-groups/{consentGroupGuid}/data-subjects Add data subjects to a consent group · Add Data Subjects to Parent Consent Group #
Ask an LLM
“How do I put individual data subjects into a consent group?”
“Can a parent consent group hold both data subjects and child groups at the same level?”
Tell an agent
Add data subjects {dataSubjects} to consent group {consentGroupGuid}.
Enroll people {dataSubjects} as members of consent group {consentGroupGuid}.
DELETE /api/consent/v2/consent-groups/{consentGroupGuid}/data-subjects/{dataSubjectGuid} Remove a data subject from a consent group · Remove Data Subject from Parent Consent Group #
Ask an LLM
“How do I take one person out of a consent group?”
“Can I remove more than one data subject from a consent group per call?”
Tell an agent destructive · confirm first
Remove data subject {dataSubjectGuid} from consent group {consentGroupGuid}.
Take member {dataSubjectGuid} out of consent group {consentGroupGuid}.
PUT /api/consent/v2/consent-groups/{consentGroupGuid}/purpose-rules Update a consent group's purpose rules · Update Consent Group Purpose Rule #
Ask an LLM
“How do I change the enforced status on purpose rules a consent group already has?”
“Can I edit existing purpose rules on a consent group?”
Tell an agent
Update the existing purpose rules on consent group {consentGroupGuid} to {purposeRules}.
Change the enforced statuses of purpose rules in group {consentGroupGuid}.
POST /api/consent/v2/consent-groups/{consentGroupGuid}/purpose-rules Add purpose rules to a consent group · Add Purpose Rules to Consent Group #
Ask an LLM
“How do I force a purpose to a set status for everyone in a consent group?”
“Can I attach new purpose rules that override members' consent?”
Tell an agent
Add purpose rules {purposeRules} to consent group {consentGroupGuid}.
Attach a new enforced-status purpose rule to group {consentGroupGuid}.
DELETE /api/consent/v2/consent-groups/{consentGroupGuid}/purpose-rules/{purposeGuid} Remove a purpose rule from a consent group · Remove Purpose Rule from Consent Group #
Ask an LLM
“How do I stop a consent group from overriding a particular purpose?”
“Can I delete a single purpose rule from a consent group?”
Tell an agent destructive · confirm first
Remove the purpose rule for {purposeGuid} from consent group {consentGroupGuid}.
Delete purpose {purposeGuid}'s rule on group {consentGroupGuid}.

Documentation

📖
Documentation
https://developer.onetrust.com/onetrust/reference/attribute-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/activity-log
📖
Documentation
https://developer.onetrust.com/onetrust/reference/preferences-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/banner
📖
Documentation
https://developer.onetrust.com/onetrust/reference/consent-receipts
📖
Documentation
https://developer.onetrust.com/onetrust/reference/applications
📖
Documentation
https://developer.onetrust.com/onetrust/reference/categorizations
📖
Documentation
https://developer.onetrust.com/onetrust/reference/domain-data
📖
Documentation
https://developer.onetrust.com/onetrust/reference/preferences
📖
Documentation
https://developer.onetrust.com/onetrust/reference/mobile-app-data
📖
Documentation
https://developer.onetrust.com/onetrust/reference/privacy-notice-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/collection-points
📖
Documentation
https://developer.onetrust.com/onetrust/reference/catalog-search-v1
📖
Documentation
https://developer.onetrust.com/onetrust/reference/classification
📖
Documentation
https://developer.onetrust.com/onetrust/reference/custom-scan
📖
Documentation
https://developer.onetrust.com/onetrust/reference/carbon-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/audit-records
📖
Documentation
https://developer.onetrust.com/onetrust/reference/bulk-export
📖
Documentation
https://developer.onetrust.com/onetrust/reference/attachments
📖
Documentation
https://developer.onetrust.com/onetrust/reference/system-credentials
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory-relationships-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/model-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/tasks
📖
Documentation
https://developer.onetrust.com/onetrust/reference/groups-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/assessment-actions
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory-1
📖
Documentation
https://developer.onetrust.com/onetrust/reference/drop-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/incidents
📖
Documentation
https://developer.onetrust.com/onetrust/reference/document-controller
📖
Documentation
https://developer.onetrust.com/onetrust/reference/audits
📖
Documentation
https://developer.onetrust.com/onetrust/reference/initiatives
📖
Documentation
https://developer.onetrust.com/onetrust/reference/document-attachments
📖
Documentation
https://developer.onetrust.com/onetrust/reference/issues
📖
Documentation
https://developer.onetrust.com/onetrust/reference/control-implementations
📖
Documentation
https://developer.onetrust.com/onetrust/reference/training
📖
Documentation
https://developer.onetrust.com/onetrust/reference/contracts

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onetrust:onetrust-consent-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onetrust-consent-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Consent & Preferences - Universal Consent & Preference…
  version: '1.0'
  contact:
    name: OneTrust Support
    url: https://my.onetrust.com/s/contactsupport
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  description: The Universal Consent & Preference Management APIs are used to integrate external systems and streamline the flow of data with Universal Consent & Preference Management in the OneTrust Platform.
servers:
- url: https://{hostname}
  variables:
    hostname:
      default: hostname
      description: The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com.
tags:


# --- truncated at 32 KB (46 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/onetrust/refs/heads/main/openapi/onetrust-consent-groups-api-openapi.yml