Assign Notes to a Chat
#
Method#
/chats/{phone}/notesPOST
https://api.z-api.io/instances/{{instanceId}}/token/{{instanceToken}}/chats/{phone}/notes
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method allows you to assign notes to a chat in WhatsApp Business.
Important
This method is only available for devices connected to the Multi-Device version of WhatsApp.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
notes | string | Text of the note |
#
Request Body#
Response#
200Attributes | Type | Description |
---|---|---|
success | boolean | true if successful, false if failed |
Example
#
405In this case, ensure that you are correctly following the method specification, i.e., check if you are sending a POST or PUT request as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" header in your request, which is usually "application/json" for most objects you are sending.