Archive or Unarchive Chat
PATCH/api/v2/instance/:instanceId/chat/:id/archive
This endpoint allows you to archive or unarchive a WhatsApp chat. Archiving a chat is a way to organize and hide old conversations, while unarchiveing a chat makes the conversation visible again in the chat list.
Request
Path Parameters
instanceId stringrequired
ID of the instance.
Query Parameters
id stringrequired
The id [keyRemoteJid] of the chat to be archived.
- application/json
Body
required
archive Archiverequired
Default value: false
Responses
- 200
- 400
- 401
- 500
Operation success.
- application/json
- Schema
- Example (from schema)
Schema
archiveChat boolean
Default value: true
{
"archiveChat": true
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
InternalServerErrorException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
Loading...