# 移除成员与权限

请求URL

DELETE https://lxapi.lexiangla.com/cgi-bin/v1/kb/teams/{team_id}/subject

请求头

参数 是否必须 说明
Content-Type 固定值:"application/json; charset=utf-8"
Authorization 接口调用凭证 access_token
值格式:"Bearer access_token"
示例值:"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJS"
x-staff-id 成员帐号,作为移除者需具有操作权限
若不希望指定移除者或忽略权限校验,可设置为固定值:"system-bot"

其他说明

事项 说明
权限要求 团队管理
授权范围 AppKey绑定团队时,入参team_id需在该范围内
频率限制 3000次/分钟

URL 参数说明

参数 是否必须 说明
team_id 团队ID

请求参数

{
  "data": {
    "type": "staff",
    "id": "ThreeZhang",
    "attributes": {
      "role": "viewer"
    }
  }
}

参数说明

参数 是否必须 说明
data.type 对象类型,staff 或 department。
data.id 对象ID。staff 填成员帐号,department 填部门ID。
data.attributes.role 当前对象的角色
manager:管理 editor:编辑 downloader:查看下载 viewer:仅查看

响应

200 Ok 状态码