curl --request POST \
--url https://api.wppfy.com/chat/notes/edit \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"number": "5511999999999@s.whatsapp.net",
"notes": "Cliente prefere contato no período da tarde"
}
'{
"response": "Notas del chat actualizadas",
"chat": {
"id": "<string>",
"wa_fastid": "<string>",
"wa_chatid": "<string>",
"wa_chatlid": "<string>",
"wa_archived": false,
"wa_contactName": "",
"wa_name": "",
"name": "",
"image": "",
"imagePreview": "",
"parent_community": {
"jid": "<string>",
"name": "<string>",
"image_url": "<string>",
"image_preview_url": "<string>",
"default_subgroup_jid": "<string>"
},
"wa_ephemeralExpiration": 0,
"wa_isBlocked": false,
"wa_isGroup": false,
"wa_isGroup_admin": false,
"wa_isGroup_announce": false,
"wa_isGroup_community": false,
"wa_isGroup_member": false,
"wa_isPinned": false,
"wa_label": [
"<string>"
],
"wa_notes": "",
"wa_lastMessageTextVote": "",
"wa_lastMessageType": "",
"wa_lastMsgTimestamp": 0,
"wa_lastMessageSender": "",
"lead_awaitingReply": true,
"wa_muteEndTime": 0,
"owner": "",
"wa_unreadCount": 0,
"phone": "",
"common_groups": "Grupo Familia(120363123456789012@g.us),Trabajo(987654321098765432@g.us)",
"lead_name": "",
"lead_fullName": "",
"lead_email": "",
"lead_personalid": "",
"lead_status": "",
"lead_tags": [
"<string>"
],
"lead_notes": "",
"lead_isTicketOpen": false,
"lead_assignedAttendant_id": "",
"lead_kanbanOrder": 0,
"lead_field01": "",
"lead_field02": "",
"lead_field03": "",
"lead_field04": "",
"lead_field05": "",
"lead_field06": "",
"lead_field07": "",
"lead_field08": "",
"lead_field09": "",
"lead_field10": "",
"lead_field11": "",
"lead_field12": "",
"lead_field13": "",
"lead_field14": "",
"lead_field15": "",
"lead_field16": "",
"lead_field17": "",
"lead_field18": "",
"lead_field19": "",
"lead_field20": "",
"chatbot_agentResetMemoryAt": 0,
"chatbot_lastTrigger_id": "",
"chatbot_lastTriggerAt": 0,
"chatbot_disableUntil": 0,
"chatbot_summary": ""
},
"wa_notes": "El cliente prefiere ser contactado por la tarde",
"source": "api"
}{
"error": "notes is required"
}{
"error": "chat not found"
}{
"error": "history sync still in progress, try again in a moment"
}{
"error": "error editing chat notes: client is not connected"
}Chats
Editar notas internas del chat
Actualiza wa_notes de un chat mediante el app state de WhatsApp y guarda el resultado localmente.
Reglas:
- envíe
number - envíe
notescomo campo principal - envíe un string vacío para borrar la nota del chat
POST
/
chat
/
notes
/
edit
curl --request POST \
--url https://api.wppfy.com/chat/notes/edit \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"number": "5511999999999@s.whatsapp.net",
"notes": "Cliente prefere contato no período da tarde"
}
'{
"response": "Notas del chat actualizadas",
"chat": {
"id": "<string>",
"wa_fastid": "<string>",
"wa_chatid": "<string>",
"wa_chatlid": "<string>",
"wa_archived": false,
"wa_contactName": "",
"wa_name": "",
"name": "",
"image": "",
"imagePreview": "",
"parent_community": {
"jid": "<string>",
"name": "<string>",
"image_url": "<string>",
"image_preview_url": "<string>",
"default_subgroup_jid": "<string>"
},
"wa_ephemeralExpiration": 0,
"wa_isBlocked": false,
"wa_isGroup": false,
"wa_isGroup_admin": false,
"wa_isGroup_announce": false,
"wa_isGroup_community": false,
"wa_isGroup_member": false,
"wa_isPinned": false,
"wa_label": [
"<string>"
],
"wa_notes": "",
"wa_lastMessageTextVote": "",
"wa_lastMessageType": "",
"wa_lastMsgTimestamp": 0,
"wa_lastMessageSender": "",
"lead_awaitingReply": true,
"wa_muteEndTime": 0,
"owner": "",
"wa_unreadCount": 0,
"phone": "",
"common_groups": "Grupo Familia(120363123456789012@g.us),Trabajo(987654321098765432@g.us)",
"lead_name": "",
"lead_fullName": "",
"lead_email": "",
"lead_personalid": "",
"lead_status": "",
"lead_tags": [
"<string>"
],
"lead_notes": "",
"lead_isTicketOpen": false,
"lead_assignedAttendant_id": "",
"lead_kanbanOrder": 0,
"lead_field01": "",
"lead_field02": "",
"lead_field03": "",
"lead_field04": "",
"lead_field05": "",
"lead_field06": "",
"lead_field07": "",
"lead_field08": "",
"lead_field09": "",
"lead_field10": "",
"lead_field11": "",
"lead_field12": "",
"lead_field13": "",
"lead_field14": "",
"lead_field15": "",
"lead_field16": "",
"lead_field17": "",
"lead_field18": "",
"lead_field19": "",
"lead_field20": "",
"chatbot_agentResetMemoryAt": 0,
"chatbot_lastTrigger_id": "",
"chatbot_lastTriggerAt": 0,
"chatbot_disableUntil": 0,
"chatbot_summary": ""
},
"wa_notes": "El cliente prefiere ser contactado por la tarde",
"source": "api"
}{
"error": "notes is required"
}{
"error": "chat not found"
}{
"error": "history sync still in progress, try again in a moment"
}{
"error": "error editing chat notes: client is not connected"
}Autorizaciones
Cuerpo
application/json
Respuesta
Nota actualizada correctamente
Ejemplo:
"Notas del chat actualizadas"
Representa una conversación/ticket en el sistema
Show child attributes
Show child attributes
Contenido actual de la nota después de la actualización
Ejemplo:
"El cliente prefiere ser contactado por la tarde"
Origen de la actualización
Opciones disponibles:
api Ejemplo:
"api"
