删除分组
接口概述
- 功能:删除分组
- 请求方式:POST
- 请求地址:/api/contacts/teams/{team_id}/groups/batch_delete?appid={appid}&access_token={access_token}
请求参数
参数名 | 类型 | 必须 | 参数位置 | 描述 | 示例值 |
---|---|---|---|---|---|
team_id | integer | 是 | uri | 团队ID | 30 |
group_ids | array[integer] | 是 | body | 分组ID列表 | [6008,6009] |
响应参数
无
请求示例
{
"group_ids": [6008, 6009]
}
响应示例
- 请求成功
{
"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 错误代码 | 错误描述 |
---|---|
invalid_param | 参数校验不通过 |
claim_error | 无权限 |
contacts_group_not_found | 数据不存在 |