Data Subject Groups
Create Data Subject Group
Use this API to create a new Data Subject Group.
🗒 Things to Know
- Data Subject Groups must contain at least one primary data subject identifier and two data subjects.
post/api/consentmanager/v2/linkedidentitygroups
Request body
Example request
{
"identifiers": [
"example@otprivacy.com",
"example@onetrust.com"
],
"primaryIdentifier": [
"example@otprivacy.com"
],
"groupName": "Customer Support Group"
}Response
OK - Successfully created Data Subject Group.
Example response
{
"id": "b0a6b5da-4ea2-4a9f-a25a-fb3e212efc30",
"createdDate": "2020-05-30T10:52:30.974Z",
"primaryDataSubject": {
"id": "c43a9190-ffd6-4be3-aeff-95b46d0fa59f",
"identifier": "example@otprivacy.com",
"identifierType": "Email",
"addedDate": "2020-05-30T12:23:42.145Z",
"numberOfLinkedGroups": 2,
"magicLinkToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"magicLinkTokenEncoded": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"organizations": [
"550e8400-e29b-41d4-a716-446655440000"
]
},
"primaryDataSubjects": [
{
"id": "c43a9190-ffd6-4be3-aeff-95b46d0fa59f",
"identifier": "example@otprivacy.com",
"identifierType": "Email",
"addedDate": "2020-05-30T12:23:42.145Z",
"numberOfLinkedGroups": 2,
"magicLinkToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"magicLinkTokenEncoded": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"organizations": [
"550e8400-e29b-41d4-a716-446655440000"
]
}
],
"dataSubjects": [
{
"id": "c43a9190-ffd6-4be3-aeff-95b46d0fa59f",
"identifier": "example@otprivacy.com",
"identifierType": "Email",
"addedDate": "2020-05-30T12:23:42.145Z",
"numberOfLinkedGroups": 2,
"magicLinkToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"magicLinkTokenEncoded": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"organizations": [
"550e8400-e29b-41d4-a716-446655440000"
]
}
],
"groupName": "Customer Group A"
}