查询实体与标签的绑定关系
查询实体与标签的绑定关系
请求
| 项目 | 值 |
|---|---|
| HTTP URL | https://open.feishu.cn/open-apis/im/v2/biz_entity_tag_relation |
| HTTP Method | GET |
| 接口频率限制 | 5 次/秒 |
| 支持的应用类型 | custom,isv |
| 权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用 开启任一权限即可 | im:biz_entity_tag_relation:read 查询实体与标签的绑定关系 im:tag:read 查询标签信息 |
请求头
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token |
查询参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
tag_biz_type | string | 是 | 业务类型 示例值:chat 可选值有: - chat: chat类型 |
biz_entity_id | string | 是 | 业务实体id 示例值:71616xxxx |
响应
响应体
| 名称 | 类型 | 描述 |
|---|---|---|
code | int | 错误码,非 0 表示失败 |
msg | string | 错误描述 |
data | \- | - |
└ tag_info_with_bind_versions | tag_info_with_bind_version\[\] | 标签内容及绑定时间 |
└ tag_info | tag_info | 标签内容 |
└ id | string | id |
└ tag_type | string | 标签类型 |
└ name | string | name |
└ i18n_names | tag_i18n_name\[\] | i18n name |
└ locale | string | 语言 |
└ name | string | 名称 |
└ create_time | string | 创建时间 |
└ update_time | string | 更新时间 |
└ bind_version | string | 绑定时间 |
响应体示例
json
{
"code": 0,
"msg": "success",
"data": {
"tag_info_with_bind_versions": [
{
"tag_info": {
"id": "716168xxxxx",
"tag_type": "tenant",
"name": "tagName1",
"i18n_names": [
{
"locale": "zh-CN",
"name": "tagName1"
}
],
"create_time": "1700793403850",
"update_time": "1700793403850"
},
"bind_version": "1710401562336"
}
]
}
}错误码
| HTTP状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 400 | 230001 | param is invalid | 参数错误,请根据接口返回的错误信息或文档内容重新输入 |
