---
title: "Updates an existing dynamic person group with specified dynamicPersonGroupId, name, and user-provided userData."
method: PATCH
path: "/dynamicpersongroups/{dynamicPersonGroupId}"
tags: ["PersonDirectory"]
---

# Updates an existing dynamic person group with specified dynamicPersonGroupId, name, and user-provided userData.

`PATCH /dynamicpersongroups/{dynamicPersonGroupId}`

## Path parameters

- `dynamicPersonGroupId` string, required

## Request body

- DynamicPersonGroupUpdateRequest
  - `name` string — User defined name, maximum length is 128.
  - `userData` string — User specified data. Length should not exceed 16KB.
  - `addPersonIds` string[] — Person ids to add to the dynamic person group.
  - `removePersonIds` string[] — Person ids to remove from the dynamic person group.

## Response `202`

Success

## Other responses

- `default` — Response entity accompanying non-successful responses containing additional details about the error.

## Changes

- **2026-07-13** `8a19b734b92a` — 1 info
  - endpoint added
- **2017-12-28** `e67414f9aeba` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/cognitiveservices-face/changes/dynamicpersongroups/:dynamicPersonGroupId/patch.md)

---

[API](https://skmtc.dev/azure/apis/cognitiveservices-face.md) · [All operations](https://skmtc.dev/azure/apis/cognitiveservices-face/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/cognitiveservices-face/revisions/8a19b734b92a/schema)
