Mute Chats
#
Method#
/modify-chatPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/modify-chat
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method is responsible for muting and unmuting your chats.
#
Attributes#
RequiredAttribute | Type | Description |
---|---|---|
phone | integer | Phone number you want to mute or unmute in YOUR chat |
action | string | Attribute for muting and unmuting the chat (mute or unmute) |
#
Request BodyExample
#
Response#
200Attribute | Type | Description |
---|---|---|
value | boolean | Action confirmation attribute |
Example
#
405In this case, make sure you are sending the method specification correctly, i.e., check if you sent the POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" header to the request for the object you are sending, most commonly "application/json."