Delete Organization Structure¶
Delete organization structure nodes.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.3/structure/delete
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Required/Optional |
Data Type |
Description |
---|---|---|---|---|
orgId |
Query |
Required |
String |
OU ID. How to get orgId >> |
Request Parameters (Body)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
structureRootId |
Required |
String |
The root node ID of the organization structure nodes to be deleted. |
structureIds |
Optional |
Array |
The organization structure node IDs to be deleted. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
boolean |
Whether the organization structure was deleted successfully. |
Error Codes¶
Error Code |
Description |
---|---|
31400 |
Application not obtained in the OU, mismatched root nodes, non-existed nodes, etc. |
31403 |
The application does not have the access to the organization structure |
31435 |
The nodes to be deleted are assigned with applications, assets, roles or users |
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.3/structure/delete?orgId=your_org_id
method: POST
requestBody:
{
"structureRootId": "your_root_node_id",
"structureIds":["your_node_id_1", "your_node_id_2"]
}
Return Sample¶
{
"code": 0,
"data": true,
"message": "OK"
}