员工身份(EIAM)
 删除组织
   接口
 # 权限
身份管理API是以应用维度授权的,在调用接口前需为不同的应用设置接口权限,详情请参考API权限。
| 权限代码 | 描述 | 
|---|---|
| org_all | 组织管理接口的读写权限 | 
| all | 全部接口读写权限 | 
# 请求说明
DELETE https://{your_domain}/api/v2/tenant/organizations/{org_id}
# 请求头
| 参数名 | 中文名称 | 必须 | 类型 | 描述 | 
|---|---|---|---|---|
| Authorization | 授权 | 是 | String | 格式:Bearer {access_token} | 
| Content-Type | 内容类型 | 是 | String | 固定值:application/json; charset=utf-8 | 
# 请求示例
无
# 请求参数
| 参数名 | 中文名称 | 必须 | 类型 | 描述 | 
|---|---|---|---|---|
| org_id | 组织id | 是 | String | 组织id | 
# 返回示例
成功示例: 
HTTP/1.1 204 No Content 
错误示例: 
HTTP/1.1 400 Bad Request 
{ 
	"error_code": "ORG.0001", 
	"error_msg": "组织不存在" 
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 返回参数
无
# 错误码
| 状态码 | 错误码 | 错误信息 | 处理措施 | 
|---|---|---|---|
| 400 | ORG.0001 | 组织不存在 | 请检查对应组织是否存在 | 
| Organization does not exist | |||
| 400 | ORG.0020 | 当前组织下存在子组织不能被删除 | 请检查当前组织下是否存在子组织 | 
| The existing sub-organization under the current organization cannot be deleted | |||
| 400 | ORG.0021 | 当前组织下存在用户组不能被删除 | 请检查当前组织下是否存在用户组 | 
| User groups that exist in the current organization cannot be deleted | |||
| 400 | ORG.0022 | 当前组织下存在用户不能被删除 | 请检查当前组织下是否存在用户 | 
| Users in the current organization cannot be deleted | 
