---
title: "Add Custom Rule"
method: POST
path: "/api/schema/diagnostic/{upload_id}/rule"
tags: ["Schema Validation", "Schema Validation"]
---

# Add Custom Rule

`POST /api/schema/diagnostic/{upload_id}/rule`

## Request

- Base URL: `https://api.dataroia.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dataroia.com/api/schema/diagnostic/{upload_id}/rule`
- Auth: none declared

Ajoute une règle métier custom saisie par le client.
Catégorisée par Mistral local (async, n'impacte pas l'affichage).

## Path parameters

- `upload_id` string, required

## Query parameters

- `token` string, required

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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