---
title: "Update Data Subject Group"
method: PUT
path: "/rest/api/consent/v4/linkedidentitygroups/{dataSubjectGroupId}"
tags: ["Data Subject Groups V4"]
---

# Update Data Subject Group

`PUT /rest/api/consent/v4/linkedidentitygroups/{dataSubjectGroupId}`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/rest/api/consent/v4/linkedidentitygroups/{dataSubjectGroupId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `CONSENT`

Use this API to update an existing Data Subject Group.

> 🗒 Things to Know
>
> - Data Subject Groups must contain at least one primary data subject identifier and two data subjects.
> - To update the Data Subject Group name, use the `groupName` parameter and enter a new name different from the one already in use.

## Path parameters

- `dataSubjectGroupId` string, uuid, required

## Request body

- ConsentAPILinkedIdentityGroupRequestDto
  - `groupName` string, required: A user-defined name for the group of linked identities.
  - `memberIdentifiers` string[], required: A list of all member identifiers that belong to the group.
  - `primaryIdentifiers` string[], required: A List of all identifiers that are primary identifiers. The members in this list need not be present in member identifiers list as they are mutually exclusive.

## Response `200`

OK

- ConsentAPILinkedIdentityGroupResponseDto
  - `id` string: Unique identifier of the linked identity group
  - `createdDate` string, date-time: Date and time when the group was created
  - `groupName` string: Name of the group
  - `primaryDataSubjects` ConsentAPILinkedIdentityGroupDataSubjectResponseDto[]: List of primary data subjects in the group
    - `id` string, uuid: Unique identifier (UUID) of the data subject
    - `identifier` string: The original identifier value for the data subject
    - `identifierType` string: Type of identifier (e.g., EMAIL, PHONE)
    - `addedDate` string, date-time: Date and time when the data subject was added to the group
  - `memberDataSubjects` ConsentAPILinkedIdentityGroupDataSubjectResponseDto[]: List of member data subjects in the group
    - `id` string, uuid: Unique identifier (UUID) of the data subject
    - `identifier` string: The original identifier value for the data subject
    - `identifierType` string: Type of identifier (e.g., EMAIL, PHONE)
    - `addedDate` string, date-time: Date and time when the data subject was added to the group

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management.md) - [All operations](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management/revisions/fe4a0697ec9d?raw)
