Skip to main content

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

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

Successful response

Schema
    any
Loading...