---
title: "Save Static Rule"
method: POST
path: "/api/rules/static"
---

# Save Static Rule

`POST /api/rules/static`

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

Save or update static rule configuration.

## Request body

- StaticRuleRequest: Request model for static rule configuration.
  - `rule_type` 'static_repeat_hour' | 'static_sentry', required
  - `enabled` boolean, required
  - `channels` string[], required
  - `users` string[], nullable
  - `hours_back` integer, nullable
  - `reinvestigate_after_days` integer, 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)
