---
title: "Upsert custom compliance rules"
method: PATCH
path: "/compliance/rules"
tags: ["compliance"]
---

# Upsert custom compliance rules

`PATCH /compliance/rules`

## Request

- Base URL: `https://catalyst.stratogenic.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://catalyst.stratogenic.ai/compliance/rules`
- Auth: API key in header `X-API-Key`

Creates or updates tenant-specific compliance rules.

Custom rules extend or override baseline compliance behaviour and are evaluated during compliance scans.

Each rule is identified by a stable rule ID and may define patterns, rule type, and remediation guidance.

## Headers

- `X-User-Id` string, nullable
- `X-Source-App` string, nullable
- `X-Touched-By-Tool` string, nullable
- `X-Touched-By-User` string, nullable
- `X-Touched-By-Agent` string, nullable
- `X-External-User-Id` string, nullable
- `X-Run-Id` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stratogenic/apis/stratogenic-catalyst-api.md) · [All operations](https://skmtc.dev/stratogenic/apis/stratogenic-catalyst-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stratogenic/apis/stratogenic-catalyst-api/revisions/ad906ad7a85d?raw)
