Remove Organization Structures¶
不登录 EnOS 应用门户的状态下给用户移除组织结构。
操作权限¶
需要在 EnOS 应用门户给应用授权“在本 OU 给用户授权”的权限。
请求格式¶
POST https://{apigw-address}/app-portal-service/v2.2/structure/removeStructures
请求参数(Body)¶
| 名称 | 必需/可选 | 数据类型 | 描述 | 
|---|---|---|---|
| organizationId | 必需 | String | 组织 ID。如何获取 organizationId 信息>> | 
| userId | 必需 | String | 用户 ID。 | 
| structureIds | 必需 | List | 要给用户移除的组织结构 ID。 | 
响应参数¶
| 名称 | 数据类型 | 描述 | 
|---|---|---|
| data | Boolean | 
 | 
错误码¶
| 代码 | 描述 | 
|---|---|
| 31400 | 参数错误,长度错误,不能为空等 | 
| 31403 | 应用未被授权“在本 OU 给用户授权”的权限 | 
| 31404 | 未找到组织 | 
示例¶
请求示例¶
url: https://{apigw-address}/app-portal-service/v2.2/structure/removeStructures
method: POST
requestBody:
{"organizationId":"yourOrgId", "userId":"yourUserId","structureIds": ["st1","st2","st3"]}
返回示例¶
{
  "code": 0,
  "message": "OK",
  "data": true
}