跳到主要内容

功能说明​

为会话设置标签,用于会话分组

请求说明​

请求鉴权:接口需要增加验证 Header,请查看 鉴权说明

请求类型:POST

请求限频:100次/秒

请求地址:https://请求域名/apigateway/convers/tags/add

Content-Type:application/json

请求参数​

参数数据类型是否必填参数说明
user_idstring是设置会话标签的用户 ID;最多 32 个字符
tagstring是标签标识;最多 50 个字符
tag_namestring否标签昵称;最多 50 个字符
conversarray是设置标签的会话列表
convers[].target_idstring是会话 ID;最多 32 个字符
convers[].channel_typeint是会话类型,1:单聊;2:群聊

请求示例​

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
}
]
}

响应示例​

{
"code":0,
"msg":"sucess"
}