Overview
Pins or unpins conversations.
Request
Authentication: Add authentication headers to the request. See Authentication.
Method:
POST
Rate limit:
100 requests/second
Endpoint: https://API domain/apigateway/convers/top
Content-Type:
application/json
Request Parameters
| Parameter | Data Type | Required | Description | |
|---|---|---|---|---|
| user_id | string | Yes | ID of the user whose conversations are being pinned or unpinned. Maximum length: 32 characters. | |
| items | array | Yes | Conversations whose pinning state is being changed. | |
| items[].target_id | string | Yes | Conversation target ID. Maximum length: 32 characters. | |
| items[].channel_type | int | Yes | Conversation type. | |
| items[].is_top | bool | Yes | Whether to pin the conversation. |
Request Example
POST /apigateway/convers/top HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json
{
"user_id":"userid1",
"items":[
{
"target_id":"userid2",
"channel_type":1,
"is_top":true
},
{
"target_id":"groupid1",
"channel_type":2,
"is_top":false
}
]
}
Response Example
{
"code":0,
"msg":"sucess"
}