Adds new participants to an existing group.
Request
Body Params application/json
{
"participants": [
{
"phoneNumber": "5511999999999"
}
],
"action": "promote"
}
Request samples
curl --location --request PUT 'https://nexus.sourei.com.br/api/v1/group/members?groupId=' \
--header 'Authorization: Bearer {{token}}' \
--header 'x-session-id: {{session_id}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"participants": [
{
"phoneNumber": "5511999999999"
}
],
"action": "promote"
}
/*
Exemplo 1: Adicionar participantes
{
"participants": [
{
"phoneNumber": "5511999999999"
}
],
"action": "add"
}
// Exemplo 2: Remover participantes
{
"participants": [
{
"phoneNumber": "5511999999999"
}
],
"action": "remove"
}
// Exemplo 3: Promover a admin
{
"participants": [
{
"phoneNumber": "5511999999999"
},
{
"phoneNumber": "5511988888888"
}
],
"action": "promote"
}
// Exemplo 4: Remover admin
{
"participants": [
{
"phoneNumber": "5511999999999"
}
],
"action": "demote"
}
*/'
Responses
application/json Modified at 2025-01-24 20:33:25