Archive specific chats for a given instance.
PUT/chat/archiveChat/:instanceName
This endpoint allows users to archive specific chats based on the last message.
Request
Path Parameters
instanceName stringrequired
The name of the instance to which the reaction should be sent.
Example: codechat
- application/json
Body
required
lastMessage objectrequired
key object
remoteJid stringrequired
ID of the recipient of the last message.
fromMe booleanrequired
Indicates if the last message was sent from the user.
id stringrequired
Unique ID of the last message.
archive booleanrequired
Indicates whether to archive the chat.
Responses
- 200
Successful response
- application/json
- Schema
Schema
- any
Loading...