Skip to content

删除可搜可见规则 ​

管理员视角删除可搜可见规则。用户需具备关联组织管理员权限。

请求 ​

项目值
HTTP URLhttps://open.feishu.cn/open-apis/directory/v1/collaboration_rules/:collaboration_rule_id
HTTP MethodDELETE
接口频率限制100 次/分钟
支持的应用类型custom
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用trust_party:collaboration_rule:write 变更关联组织协作规则

请求头 ​

名称类型必填描述
Authorizationstring是tenant_access_token 或 user_access_token 值格式:"Bearer access_token" 示例值:"Bearer u-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token

路径参数 ​

名称类型描述
collaboration_rule_idstring规则ID,可通过查询可搜可见规则获得
示例值:"2121"

查询参数 ​

名称类型必填描述
target_tenant_keystring是对方组织的tenant key,可通过管理员获取所有关联组织列表获取
示例值:test_key

响应 ​

响应体 ​

名称类型描述
codeint错误码,非 0 表示失败
msgstring错误描述
data\--

响应体示例 ​

json
{
    "code": 0,
    "msg": "success",
    "data": {}
}

错误码 ​

HTTP状态码错误码描述排查建议
4002223101This tenant has no relationship with the other tenant请选择正确的关联组织
4002223107The rule id is not exist请选择有效的rule id
4002223108The update is too frequent. Please try again later操作过于频繁,请稍后再试
4002224001No permission to operate无操作权限,请联系超管配置你为关联组织管理员权限

内容来源:飞书开放平台 · 自动爬取整理