Delete Organizations

Last Updated on : 2023-07-06 08:23:53download

Delete multiple organizations based on the organization identifier set.

API address

POST: /v1.0/iot-03/idaas/spaces/{space_id}/organizations/actions/batch-soft-delete

Request parameter

Parameter nameTypeINRequiredDescription
space_idStringuritrueThe ID of a specified space.

Description of body

Parameter nameTypeINRequiredDescription
codeString trueThe identifier of a specified organization.
nameString trueThe name of a specified organization.
parent_codeString falseThe identifier of a specified parent organization.
remarkString falseThe remarks of a specified organization.
owner_uidString trueThe user ID of the organization owner.

Return parameter

Parameter nameTypeDescription
resultBooleanThe result of bulk deletion.

Request example

POST: /v1.0/iot-03/idaas/spaces/1400335346549391440/organizations/actions/batch-soft-delete
[
  {
    "code": "Acode",
    "ownerUid": "AownerUid"
  },
  {
    "code": "Bcode",
    "ownerUid": "BownerUid"
  }
]

Return example

{
    "result": true,
    "t": 1629272469492,
    "success": true
}

Error code

For more information, see error code.