跳转到主要内容
POST
固定或取消置顶聊天

授权

Authorization
string
header
必填

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

请求头

X-Device-Id
string

多设备支持的设备标识符。 当多个设备被注册时需要. 如果只有一个设备被注册,它将被用作默认。 也可以以 device_id 查询参数提供。

示例:

"my-device-id"

路径参数

chat_jid
string
必填

聊天 JID (e.g. phone@s.whatsapp.net for individ或groupid@g.us for group). 接受百分比编码值(如组%40g.us)。

请求体

application/json
pinned
boolean
必填

是固定(true) 还是取消固定(false) 聊天室

示例:

true

响应

好的

code
string
示例:

"SUCCESS"

message
string
示例:

"Chat pinned successfully"

results
object