---
title: "Apply Tag Rule Draft Endpoint"
method: POST
path: "/applyTagRuleDraft"
---

# Apply Tag Rule Draft Endpoint

`POST /applyTagRuleDraft`

## 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/applyTagRuleDraft`
- Auth: none declared

Apply one reviewed draft: create the rule (or merge it into the matching one), create any
new people, optionally tag existing photos, delete the draft — one transaction.

Body: { projectId, draftId, rule, applyToExisting? }  (rule = the draft as edited on screen)
Creating people is a faces-page action, so a rule with new people also needs pages.faces.
Returns { rule, merged, createdPersons, appliedToImages }.

## Response `200`

Successful Response

- unknown

## Changes

- **2026-09-26** `2c06d2d329ca`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pavoot/apis/pavoot-api/changes/applyTagRuleDraft/post.md)

---

[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)
