curl --request POST \
--url https://{server-url}/chat/archiveChat/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"lastMessage": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
},
"archive": true,
"chat": "<string>"
}'
{
"chatId": "553198296801@s.whatsapp.net",
"archived": true
}
curl --request POST \
--url https://{server-url}/chat/archiveChat/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"lastMessage": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
},
"archive": true,
"chat": "<string>"
}'
{
"chatId": "553198296801@s.whatsapp.net",
"archived": true
}
curl --request POST \
--url https://{server-url}/chat/archiveChat/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"lastMessage": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
},
"archive": true,
"chat": "<string>"
}'
{
"chatId": "553198296801@s.whatsapp.net",
"archived": true
}
curl --request POST \
--url https://{server-url}/chat/archiveChat/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"lastMessage": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
},
"archive": true,
"chat": "<string>"
}'
{
"chatId": "553198296801@s.whatsapp.net",
"archived": true
}