This endpoint deletes a specific Organization.
Request
To delete an Organization, make a DELETE request to the following URL:
| HTTP Method | URL |
|---|---|
| DELETE | https://nanoview-api.wellairsolutions.com/api/v2.0/organizations/<organization_key>/ |
Path Parameters
| Parameter | Required? | Description |
|---|---|---|
| organization_key | Yes | The ID or label of the Organization, label should use the prefix ~ |
Query Parameters
| Parameter | Type | Use | Description |
|---|---|---|---|
| token | String | Authentication | Authentication Token can optionally be sent as a query parameter. |
Header
| Parameter | Required? | Description |
|---|---|---|
| X-Auth-Token | Yes | Authentication Token of account |
$ curl -X DELETE 'https://nanoview-api.wellairsolutions.com/api/v2.0/organization/<organization_key>/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \{
"code": 400001,
"message": "Validation Error.",
"detail": {
....
}
}{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}Response
If the Organization was deleted successfully, returns status code 204.
AttentionDeleting an Organization cannot be undone. Back up any data before deleting an Organization.
Nested Organizations are deleted tooDeleting an Organization also deletes every Organization nested below it, at any depth. Their Devices, Events and Incidents are not deleted: they stay in the account without an Organization. Move the nested Organizations, or reassign their Devices, before deleting a building whose data must stay visible to its users. See Organization Hierarchy.
