---
title: "Save Dynamic Rule"
method: POST
path: "/api/rules/dynamic"
---

# Save Dynamic Rule

`POST /api/rules/dynamic`

## Request

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

Create a new dynamic rule.

## Request body

- DynamicRuleRequest: Request model for dynamic rule creation and update.
  - `text` string, nullable
  - `filter_phrases` string[], nullable
  - `user_ids` string[], nullable
  - `user_id` string, nullable
  - `channels` string[], nullable
  - `rule_action` string, nullable
  - `include_human_messages` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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