---
title: "Create System Rule"
method: POST
path: "/api/admin/system-rules"
tags: ["admin"]
---

# Create System Rule

`POST /api/admin/system-rules`

## Request

- Base URL: `https://marketcrew.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://marketcrew.ai/api/admin/system-rules`
- Auth: HTTP bearer

Create a new system rule (ADMIN only)

## Request body

- SystemRuleCreate: System rule creation model
  - `name` string, required
  - `rule_type` 'global' | 'chat' | 'financial_report' | 'news_analysis' | 'news_summary', required: System rule types for AI instructions
  - `content` string, required
  - `is_active` boolean
  - `priority` integer: Lower number = higher priority

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/marketcrew/apis/cappilot.md) · [All operations](https://skmtc.dev/marketcrew/apis/cappilot/llms.txt) · [OpenAPI document](https://skmtc.dev/marketcrew/apis/cappilot/revisions/7036e9c74d40?raw)
