Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(session): list the concurrency cap 400 on POST /start

Yudhi Armyndharis63aa803ff86f
diff --git a/src/modules/session/session.controller.ts b/src/modules/session/session.controller.ts
index 7c8fea0ca..cd48ba8cb 100644
--- a/src/modules/session/session.controller.ts
+++ b/src/modules/session/session.controller.ts
@@ -302,7 +302,13 @@ export class SessionController {
description: 'Session started',
type: SessionResponseDto,
})
- @ApiResponse({ status: 400, description: 'Session already started' })
+ @ApiResponse({
+ status: 400,
+ description:
+ 'Session already started or already starting, or this node is at its MAX_CONCURRENT_SESSIONS cap ' +
+ '(`Maximum concurrent sessions reached (N)`); a start refused at the cap launches nothing ' +
+ 'and leaves a stop in place.',
+ })
@ApiResponse({ status: 404, description: 'Session not found' })
@ApiResponse({
status: 409,