跳到正文
GrowSeller文档Affiliate command center
API 参考WhatsApp

Archive, pin, name, label or mark a thread unread

PATCH
/wa-official/accounts/{account_id}/chats/{chat_id}

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (gsk_…) or an app's OAuth token

Path Parameters

account_id*Account Id
Formatuuid
chat_id*Chat Id

Request Body

application/json
  1. body
is_archived?boolean|null
is_pinned?boolean|null
contact_name?|null
unread?boolean|null
labels?array<>|null

Response Body

OK

application/json
  1. response
success?boolean
data?
message?string|null
timestamp?string
Example Request
curl -X PATCH 'https://seller.growpaces.com/api/v1/wa-official/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/chats/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true,  "data": {},  "message": "string",  "timestamp": "string"}