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

# POST /persongroups/{personGroupId}/persons/{personId}/persistedfaces

`POST /persongroups/{personGroupId}/persons/{personId}/persistedfaces`

Add a representative face to a person for identification. The input face is specified as an image with a targetFace rectangle.

## Path parameters

- `personGroupId` string, required
- `personId` string, uuid, required

## Query parameters

- `userData` string
- `targetFace` integer[]

## Parameters

- `../../../Common/Parameters.json#/components/parameters/ImageUrl` — unresolved $ref

## Response `200`

A successful call returns the new persistedFaceId.

- PersistedFace — PersonFace object.
  - `persistedFaceId` string, uuid, required — The persistedFaceId of the target face, which is persisted and will not expire. Different from faceId created by Face - Detect and will expire in 24 hours after the detection call.
  - `userData` string — User-provided data attached to the face. The size limit is 1KB.

## Other responses

- `default` — Error response.

## Changes

- **2018-08-01** `dcdc115e9ae8` — 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/persongroups/:personGroupId/persons/:personId/persistedfaces/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/365eeb26c85a?raw)
