---
title: "Save Tag Rule Drafts Endpoint"
method: POST
path: "/saveTagRuleDrafts"
---

# Save Tag Rule Drafts Endpoint

`POST /saveTagRuleDrafts`

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

Store the rows of a CSV/Excel extraction as drafts — nothing is applied or created.
Body: { projectId, groups: [{ name, drafts: [{ sourceName, flagged, rule: { conditions,
        thenCategory, thenValue?, thenPersonId? } }] }] }  — one rule group per entry (one per
upload, or per day of a multi-day sheet). A flat `drafts` list is stored ungrouped.
Returns the project's drafts + groups + savedIds.

## Response `200`

Successful Response

- unknown

## Changes

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

[Operation history](https://skmtc.dev/pavoot/apis/pavoot-api/changes/saveTagRuleDrafts/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)
