---
title: "Ai Admin Save Content Safety Rule"
method: POST
path: "/api/v1/ai/admin/content-safety/rules"
tags: ["AI工作站管理·运营排障"]
---

# Ai Admin Save Content Safety Rule

`POST /api/v1/ai/admin/content-safety/rules`

## Request

- Base URL: `https://useaistation.com` (the document declares no server; this is the origin it was published from)
- URL: `https://useaistation.com/api/v1/ai/admin/content-safety/rules`
- Auth: none declared

## Query parameters

- `invite_code` string
- `client_id` string, nullable

## Request body

- AIContentSafetyRuleRequest
  - `rule_key` string, required
  - `category` string
  - `severity` string
  - `action` string
  - `pattern_type` string
  - `pattern` string, required
  - `description` string, nullable
  - `enabled` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/useaistation/apis/akaiagents-ai-workstation-api.md) · [All operations](https://skmtc.dev/useaistation/apis/akaiagents-ai-workstation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useaistation/apis/akaiagents-ai-workstation-api/revisions/829070f6ff15?raw)
