POST
Promote Admin
Promote participants to admin.
API endpoint
https://waclient.com/api/promote_community_adminExample:
curl -X POST \
'https://waclient.com/api/promote_community_admin' \
-H 'Content-Type: application/json' \
--data '{
"community_id": "[email protected]",
"participants": [
"20100981XXXX"
],
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"community_id": "[email protected]",
"promoted": [
"[email protected]"
]
}
}| Parameter | Description |
|---|---|
| community_id | Community JID or ID |
| participants | Array of phone numbers or JIDs |
| instance_id | Your instance ID |
| access_token | Your access token |