cURL
curl --request PUT \ --url https://{host}/api/{session}/labels/chats/{chatId} \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "labels": [ { "id": "1" } ] } '
{ "success": true, "chatId": "5511999999999@s.whatsapp.net", "labelId": "label123", "action": "add" }
Adicionar ou remover um rótulo de um chat específico
200
400
401
404
curl -X PUT https://api.wappfy.com.br/api/my-session/labels/chats/5511999999999@s.whatsapp.net \ -H "Content-Type: application/json" \ -d '{ "labelId": "label123", "action": "add" }'
Sua chave de API do Wappfy (obtenha em dash.wappfy.com.br)
ID da Conversa
Show child attributes