@ -1,7 +1,7 @@
openapi : 3.0 .0
openapi : 3.0 .0
info:
info:
title : WhatsApp API MultiDevice
title : WhatsApp API MultiDevice
version : 4.0 .0
version : 4.1 .0
description : This API is used for sending whatsapp via API
description : This API is used for sending whatsapp via API
servers:
servers:
- url : http://localhost:3000
- url : http://localhost:3000
@ -838,30 +838,104 @@ paths:
content:
content:
application/json:
application/json:
schema:
schema:
type : object
properties:
group_id:
type : string
example : '120363228882361111'
participants:
type : array
items:
type : string
example:
- '6819241294719274'
- '6829241294719274'
- '6839241294719274'
example:
- '6819241294719274'
- '6829241294719274'
- '6839241294719274'
$ref : '#/components/schemas/ManageParticipantRequest'
responses:
'200' :
description : OK
content:
application/json:
schema:
$ref : '#/components/schemas/ManageParticipantResponse'
'400' :
description : Bad Request
content:
application/json:
schema:
$ref : '#/components/schemas/ErrorBadRequest'
'500' :
description : Internal Server Error
content:
application/json:
schema:
$ref : '#/components/schemas/ErrorInternalServer'
/group/participants/remove:
post:
operationId : removeParticipantFromGroup
tags:
- group
summary : Remove participants from group
requestBody:
content:
application/json:
schema:
$ref : '#/components/schemas/ManageParticipantRequest'
responses:
'200' :
description : OK
content:
application/json:
schema:
$ref : '#/components/schemas/ManageParticipantResponse'
'400' :
description : Bad Request
content:
application/json:
schema:
$ref : '#/components/schemas/ErrorBadRequest'
'500' :
description : Internal Server Error
content:
application/json:
schema:
$ref : '#/components/schemas/ErrorInternalServer'
/group/participants/promote:
post:
operationId : promoteParticipantToAdmin
tags:
- group
summary : Promote participants to admin
requestBody:
content:
application/json:
schema:
$ref : '#/components/schemas/ManageParticipantRequest'
responses:
responses:
'200' :
'200' :
description : OK
description : OK
content:
content:
application/json:
application/json:
schema:
schema:
$ref : '#/components/schemas/AddParticipantToGroupResponse'
$ref : '#/components/schemas/ManageParticipantResponse'
'400' :
description : Bad Request
content:
application/json:
schema:
$ref : '#/components/schemas/ErrorBadRequest'
'500' :
description : Internal Server Error
content:
application/json:
schema:
$ref : '#/components/schemas/ErrorInternalServer'
/group/participants/demote:
post:
operationId : demoteParticipantToMember
tags:
- group
summary : Demote participants to member
requestBody:
content:
application/json:
schema:
$ref : '#/components/schemas/ManageParticipantRequest'
responses:
'200' :
description : OK
content:
application/json:
schema:
$ref : '#/components/schemas/ManageParticipantResponse'
'400' :
'400' :
description : Bad Request
description : Bad Request
content:
content:
@ -960,7 +1034,21 @@ components:
group_id:
group_id:
type : string
type : string
example : 1203632782168851111 @g.us
example : 1203632782168851111 @g.us
AddParticipantToGroupResponse:
ManageParticipantRequest:
type : object
properties:
group_id:
type : string
example : 1203632782168851111 @g.us
participants:
type : array
items:
type : string
example:
- '6819241294719274'
- '6829241294719274'
- '6839241294719274'
ManageParticipantResponse:
type : object
type : object
properties:
properties:
code:
code: