Passer au contenu principal
POST
/
whatsapp
/
groups
/
update
/
description
Modifier la description
curl --request POST \
  --url https://api.wachap.com/v1/whatsapp/groups/update/description \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountId": "<string>",
  "groupJid": "<string>",
  "description": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "newDescription": "<string>"
}

Endpoint

POST https://api.wachap.com/v1/whatsapp/groups/update/description

Headers

ParamètreTypeRequisDescription
AuthorizationstringOuiBearer token avec votre Secret Key (format: Bearer sk_...)

Body Parameters

ParamètreTypeRequisDescription
accountIdstringOuiL’identifiant du compte WhatsApp
groupJidstringOuiL’identifiant du groupe (format: [email protected])
descriptionstringOuiLa nouvelle description du groupe (max 512 caractères)

Exemple de requête

curl -X POST https://api.wachap.com/v1/whatsapp/groups/update/description \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer VOTRE_CLE_SECRETE" \
  -d '{
    "accountId": "account_xxx",
    "groupJid": "[email protected]",
    "description": "Nouvelle description du groupe"
  }'

Exemple de réponse

{
  "success": true,
  "message": "Description du groupe modifiée avec succès",
  "groupJid": "[email protected]",
  "newDescription": "Nouvelle description du groupe"
}

Notes

  • Vous devez être administrateur du groupe pour modifier la description
  • La description ne peut pas dépasser 512 caractères

Codes d’erreur

CodeDescription
400MISSING_ACCOUNT_ID - accountId manquant
400MISSING_GROUP_JID - groupJid manquant
400DESCRIPTION_TOO_LONG - La description dépasse 512 caractères
401INVALID_SECRET_KEY - Clé secrète invalide
403NOT_ADMIN - Vous n’êtes pas administrateur du groupe
404ACCOUNT_NOT_FOUND - Compte WhatsApp non trouvé

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corps

application/json
accountId
string
groupJid
string
description
string

Nouvelle description (max 512 char)

Réponse

200 - application/json

OK

success
boolean
message
string
newDescription
string