Promouvoir des membres en tant qu’administrateurs.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| Authorization | string | Oui | Bearer token avec votre Secret Key (format: Bearer sk_...) |
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| accountId | string | Oui | L’identifiant du compte WhatsApp |
| groupJid | string | Oui | L’identifiant du groupe (format: [email protected]) |
| action | string | Oui | Action à effectuer: promote |
| participants | array | Oui | Liste des numéros de téléphone au format international |
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| accountId | string | Oui | L’identifiant du compte WhatsApp |
| action | string | Oui | Action à effectuer: promote |
| participants | array | Oui | Liste des numéros de téléphone au format international |
| Code | Description |
|---|---|
| 400 | MISSING_ACCOUNT_ID - accountId manquant |
| 400 | MISSING_GROUP_JID - groupJid manquant |
| 400 | MISSING_ACTION - action manquante |
| 400 | MISSING_PARTICIPANTS - participants manquant ou vide |
| 401 | INVALID_SECRET_KEY - Clé secrète invalide |
| 403 | NOT_CREATOR - Seul le créateur peut promouvoir des administrateurs |
| 404 | ACCOUNT_NOT_FOUND - Compte WhatsApp non trouvé |
| 404 | GROUP_NOT_FOUND - Groupe non trouvé |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK