POST
/
session
/
{sessionId}
/
group
/
{jid}
/
promote
curl --request POST \
  --url https://dev.zappaz.io/api/v1/session/{sessionId}/group/{jid}/promote \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '[
  "5511999999999",
  "5522888888888"
]'
{
  "status": {}
}

Authorizations

Authorization
string
header
required

Token de usuário ou sessão, passado diretamente como uma string no cabeçalho 'Authorization'. O token de usuário tem escopo sobre todas as sessões pertencentes ao usuário. O token de sessão é limitado à própria sessão.

Path Parameters

sessionId
string
required

Identificador único da sessão

jid
string
required

Group identifier (JID) in the format 'groupid@g.us'

Body

application/json · string[]
Array of phone numbers to promote to admin.

Array de números de telefone representando participantes de um grupo do WhatsApp

Response

200
application/json
Participants promoted successfully

The response is of type object.