解绑标签与群
从业务实体上解绑标签。
请求
| 项目 | 值 |
|---|---|
| HTTP URL | https://open.feishu.cn/open-apis/im/v2/biz_entity_tag_relation |
| HTTP Method | PUT |
| 接口频率限制 | 5 次/秒 |
| 支持的应用类型 | custom,isv |
| 权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用 | im:biz_entity_tag_relation:write 在业务实体上绑定或解绑标签 |
请求头
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token |
| Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
请求体
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
tag_biz_type | string | 是 | 业务类型 示例值:"chat" 可选值有: - chat: chat类型 |
biz_entity_id | string | 是 | 业务实体id 示例值:"oc_xxxxx" |
tag_ids | string\[\] | 否 | 标签id 示例值:["7161681111"] 数据校验规则: - 长度范围: 0 ~ 40 |
请求体示例
json
{
"tag_biz_type": "chat",
"biz_entity_id": "oc_xxxxx",
"tag_ids": [
"7161681111"
]
}响应
响应体
| 名称 | 类型 | 描述 |
|---|---|---|
code | int | 错误码,非 0 表示失败 |
msg | string | 错误描述 |
data | \- | - |
响应体示例
json
{
"code": 0,
"msg": "success",
"data": {}
}错误码
| HTTP状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 400 | 230001 | param is invalid | 参数错误,请根据接口返回的错误信息或文档内容重新输入 |
