Remove participants from group
Body
-
group_id string
-
participants array[string]
POST
/group/participants/remove
curl \
-X POST http://localhost:3000/group/participants/remove \
-H "Content-Type: application/json" \
-d '{"group_id":"1203632782168851111@g.us","participants":["6819241294719274","6829241294719274","6839241294719274"]}'
Request examples
{
"group_id": "1203632782168851111@g.us",
"participants": [
"6819241294719274",
"6829241294719274",
"6839241294719274"
]
}
Response examples (200)
{
"code": "SUCCESS",
"message": "Success get list groups",
"results": [
{
"participant": "6289987391723@s.whatsapp.net",
"status": "success",
"message": "Participant added"
}
]
}
Response examples (400)
{
"code": 400,
"message": "field cannot be blank",
"results": {}
}
Response examples (500)
{
"code": "INTERNAL_SERVER_ERROR",
"message": "you are not loggin",
"results": {}
}