whatsapp
Rename group
Rename a contact group. This updates the group name on all contacts that belong to the group.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
accountIdstring
WhatsApp social account ID
oldNamestring
Current group name
newNamestring
New group name
Response Body
application/json
application/json
curl -X POST "https://zernio.com/api/v1/whatsapp/groups" \ -H "Content-Type: application/json" \ -d '{ "accountId": "507f1f77bcf86cd799439011", "oldName": "customers", "newName": "active-customers" }'{
"success": true,
"message": "string",
"modified": 0
}Empty
{
"error": "Unauthorized"
}Empty
List contact groups GET
List all contact groups for a WhatsApp account with contact counts. Groups are derived from the groups field on contacts, not stored as separate documents.
Delete group DELETE
Delete a contact group. This removes the group from all contacts but does not delete the contacts themselves.