POST
Promote to Group Admin
Promote one or more group members to admin.
API endpoint
https://waclient.com/api/promote_group_adminExample:
curl -X POST \
'https://waclient.com/api/promote_group_admin' \
-H 'Content-Type: application/json' \
--data '{
"group_id": "[email protected]",
"participants": [
"20100981XXXX"
],
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"group_id": "[email protected]",
"result": [
{
"status": "200",
"jid": "[email protected]"
}
]
}
}| Parameter | Description |
|---|---|
| group_id | Group JID, e.g. [email protected] or numeric id |
| participants | Array of phone numbers or JIDs to promote |
| instance_id | Your instance ID |
| access_token | Your access token |