Deleting and restoring of tenants¶
The user with backoffice or MIKE Cloud Administrator role can delete and restore selected tenant. The tenant is soft deleted because there is a chance of getting tenants back to use MIKE Cloud and it is much better to keep them, their users and all data. The tenant will be automatically permanently deleted after 365 days from it's soft delete.
Delete tenant¶
DELETE/api/admin/feature/tenant/{tenantId}
Click to show example shell script
tenantId="<replacewithtenantid>" openapikey="<replacewithopenapikey>" curl -k -X DELETE \ "https://api.mike-cloud-test.com/api/admin/feature/tenant/$tenantId" \ -H "dhi-project-id: $tenantid" \ -H "dhi-open-api-key: $openapikey"
When things go well, no content will be returned.
Restore tenant¶
PUT/api/admin/feature/tenant/{tenantId}
Click to show example shell script
tenantId="<replacewithtenantid>" openapikey="<replacewithopenapikey>" curl -k -X PUT \ "https://api.mike-cloud-test.com/api/admin/feature/tenant/$tenantId" \ -H "dhi-project-id: $tenantid" \ -H "dhi-open-api-key: $openapikey"
When things go well, no content will be returned.