批量删除部门
适用版本>=v7.0.2411a.20241114
接口说明:基于dept_id数组批量删除部门
请求说明
| 请求地址 | 配置域名+/openapi+/v7/depts/batch_delete |
|---|---|
| 请求方法 | POST |
| 签名方式 | KSO-1(配置域名+/openapi不参与签名) |
| 权限要求 | 查询和管理通讯录信息(应用授权) kso.contact.readwrite |
请求头(Header)
| Header | 参数类型 | 是否必填 | 说明 |
|---|---|---|---|
| Content-Type | string | 是 | 使用:application/json |
| X-Kso-Date | string | 是 | RFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT |
| X-Kso-Authorization | string | 是 | KSO-1 签名值,详见《签名方法》 |
| Authorization | string | 是 | 授权凭证,格式为:Bearer {access_token} |
请求体(Body)
| 名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| dept_ids | string[] | 是 | 用户id数组,数组长度不超过50,数组中字符串长度不超过128位 |
请求体示例
json
{
"dept_ids": ["string"]
}响应体(Response)
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 错误码 |
| detail | string | 详细信息 |
| msg | string | 状态信息 |
| data | object | null |
响应体示例
json
{
"code": 0,
"data": null,
"detail": "",
"msg": "ok"
}