Overview
Adds tags to conversations for grouping purposes.
Request
Authentication: Add authentication headers to the request. See Authentication.
Method:
POST
Rate limit:
100 requests/second
Endpoint: https://API domain/apigateway/convers/tags/add
Content-Type:
application/json
Request Parameters
| Parameter | Data Type | Required | Description | |
|---|---|---|---|---|
| user_id | string | Yes | ID of the user adding the conversation tags. Maximum length: 32 characters. | |
| tag | string | Yes | Tag identifier. Maximum length: 50 characters. | |
| tag_name | string | No | Tag name. Maximum length: 50 characters. | |
| convers | array | Yes | Conversations to tag. | |
| convers[].target_id | string | Yes | Conversation target ID. Maximum length: 32 characters. | |
| convers[].channel_type | int | Yes | Conversation type. 1: private chat; 2: group chat. |
Request Example
POST /apigateway/convers/tags/add HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json
{
"user_id":"userid1",
"tag":"tag1",
"tag_name":"tag1",
"convers":[
{
"target_id":"userid2",
"channel_type":1
},
{
"target_id":"groupid1",
"channel_type":2
}
]
}
Response Example
{
"code":0,
"msg":"sucess"
}