Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(automation): declare the rule limit 400 on rule creation

Yudhi Armyndharis6e76f882cd66
diff --git a/src/modules/automation/automation-rule.controller.ts b/src/modules/automation/automation-rule.controller.ts
index 01500bc64..161a0015a 100644
--- a/src/modules/automation/automation-rule.controller.ts
+++ b/src/modules/automation/automation-rule.controller.ts
@@ -15,7 +15,11 @@ export class AutomationRuleController {
@ApiOperation({ summary: 'Create an autoreply rule' })
@ApiParam({ name: 'sessionId', description: 'Session ID' })
@ApiResponse({ status: 201, description: 'Rule created.', type: AutomationRuleResponseDto })
- @ApiResponse({ status: 400, description: 'Invalid rule (bad conditions, over-limit text, out-of-range cooldown).' })
+ @ApiResponse({
+ status: 400,
+ description:
+ 'Invalid rule (bad conditions, over-limit text, out-of-range cooldown), or the per-session rule limit is reached.',
+ })
@ApiResponse({ status: 404, description: 'No session with this id.' })
async create(
@Param('sessionId') sessionId: string,