---
title: "POST /persongroups/{personGroupId}/persons"
method: POST
path: "/persongroups/{personGroupId}/persons"
---

# POST /persongroups/{personGroupId}/persons

`POST /persongroups/{personGroupId}/persons`

## Request

- Base URL: `{Endpoint}/face/v1.0`
- URL: `{Endpoint}/face/v1.0/persongroups/{personGroupId}/persons`
- Auth: API key in header `Ocp-Apim-Subscription-Key`

Create a new person in a specified person group.

## Path parameters

- `personGroupId` string, required

## Request body

- NameAndUserDataContract: A combination of user defined name and user specified data for the person, largePersonGroup/personGroup, and largeFaceList/faceList.
  - `name` string: User defined name, maximum length is 128.
  - `userData` string: User specified data. Length should not exceed 16KB.

## Response `200`

A successful call returns a new personId created.

- Person: A combination of user defined name and user specified data for the person, largePersonGroup/personGroup, and largeFaceList/faceList.
  - `name` string: User defined name, maximum length is 128.
  - `userData` string: User specified data. Length should not exceed 16KB.

## Other responses

- `default`: Error response.

## Changes

- **2018-01-03** `d8fb8ca6c06c`: 1 info
  - api operation id `Person_Create` removed and replaced with `PersonGroupPerson_Create`
- **2017-12-28** `e67414f9aeba`: 1 info
  - api operation id `PersonGroupPerson_Create` removed and replaced with `Person_Create`

[Operation history](https://skmtc.dev/azure/apis/cognitiveservices-face/changes/persongroups/:personGroupId/persons/post.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.dev/azure/apis/cognitiveservices-face/revisions/a35087dfdbc2?raw)
