Delete Organization Structure


Delete organization structure nodes.

Request Format


POST https://{apigw-address}/app-portal-service/v2.3/structure/delete

Request Parameters (Query)


Name Mandatory/Optional Data Type Description
orgId Mandatory String OU ID

Request Parameters (Body)


Name Mandatory/Optional Data Type Description
structureRootId Mandatory String The root node of the organization structure nodes to be deleted
structureIds Optional List<String> The organization structure node IDs to be deleted

Response Parameters


Name Data Type Description
data boolean True for deleted, false for failed to delete

Error Codes


Error Code Description
31400 Possible causes: application not purchased, 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
method: POST

requestBody:
{
  "strcutureRootId": "sgxxxx0",
  "structureIds":["sgxxxx1", "sgxxxx2"]
}

Return Sample


{
  "code": 0,
  "data": true,
  "message": "OK"
}