Skip to main content
Version: v22.07

批量删除用户

接口概述

  • 功能:批量删除用户
  • 请求方式: POST
  • 请求地址:/api/contacts/teams/{team_id}/users/batchDelete

请求参数

参数名类型必须参数位置描述示例值
team_idintegeruri团队ID30
user_idsarray[integer]body用户ID[60000208205,60000208206]

响应参数

响应示例

  • 请求成功
{
"code": "OK",
"error": {
"type": ""
},
"data": {},
"request_id": "5797836d-a88e-44ef-afd4-56b25d810214"
}
  • 请求失败
{
"code": "NotFound",
"error": {
"type": "contacts_group_not_found"
},
"data": {},
"request_id": "6cf30c83-a691-40af-b27c-c1dd9b3c9e80"
}

错误码

error.type 错误代码错误描述
contacts_user_not_found用户不存在
invalid_param参数错误
claim_error无权限