BASH
Groupes WhatsApp
Modifier le nom
Modifiez le nom (sujet) d’un groupe WhatsApp.
POST
BASH
Endpoint
Headers
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| Authorization | string | Oui | Bearer token avec votre Secret Key (format: Bearer sk_...) |
Body Parameters
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| accountId | string | Oui | L’identifiant du compte WhatsApp |
| groupJid | string | Oui | L’identifiant du groupe (format: 120363123456789012@g.us) |
| subject | string | Oui | Le nouveau nom du groupe (max 100 caractères) |
Exemple de requête
Exemple de réponse
Notes
- Vous devez être administrateur du groupe pour modifier son nom
- Le nom du groupe ne peut pas dépasser 100 caractères
Codes d’erreur
| Code | Description |
|---|---|
| 400 | MISSING_ACCOUNT_ID - accountId manquant |
| 400 | MISSING_GROUP_JID - groupJid manquant |
| 400 | SUBJECT_TOO_LONG - Le nom dépasse 100 caractères |
| 401 | INVALID_SECRET_KEY - Clé secrète invalide |
| 403 | NOT_ADMIN - Vous n’êtes pas administrateur du groupe |
| 404 | ACCOUNT_NOT_FOUND - Compte WhatsApp non trouvé |
Autorisations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corps
application/json
