---
title: "Assign Face Endpoint"
method: PUT
path: "/assignFace"
---

# Assign Face Endpoint

`PUT /assignFace`

## Request

- Base URL: `https://api.pavoot.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pavoot.com/assignFace`
- Auth: none declared

Assign or rename a face/person based on 4 explicit scenarios:

- single_new:       only this face → create new person
- single_existing:  only this face → assign to existing person
- all_new:          rename this entire person to a new name
- all_existing:     merge this entire person into an existing person

## Request body

- AssignFaceRequest
  - `faceId` string, required
  - `newName` string, required
  - `renameMode` 'single_new' | 'single_existing' | 'all_new' | 'all_existing', required
  - `targetPersonId` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavoot/apis/pavoot-api.md) - [All operations](https://skmtc.dev/pavoot/apis/pavoot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pavoot/apis/pavoot-api/revisions/8c0cd91c2a05?raw)
