Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(api): list the per-session rule cap among the create 400s

Yudhi Armyndharis30852161f4bb
diff --git a/docs/06-api-specification.md b/docs/06-api-specification.md
index e5a087d19..2c343a2ff 100644
--- a/docs/06-api-specification.md
+++ b/docs/06-api-specification.md
@@ -6699,7 +6699,7 @@ Create a rule. **Auth:** API key (OPERATOR)
}
```
-`400`: invalid conditions (unknown field/operator, over-limit values) or over-limit text. `404` when no session has this id.
+`400`: invalid conditions (unknown field/operator, over-limit values) or over-limit text, or the session already holds `AUTOMATION_MAX_PER_SESSION` rules (default 32; `0` disables the cap). `404` when no session has this id.
#### GET /api/sessions/:sessionId/automation-rules