Delete Site

This endpoint is used to delete a site by its Id.

Controlled Errors

Error CodeError Message
error_site_not_foundThe site was not found.
error_user_not_foundThe user deleting the site was not found.
error_zone_assign_devicesThe site still has devices assigned to its zones.
error_zone_delete_errorFailed to delete the site's associated zones.
error_site_delete_errorFailed to delete the site.
error_last_siteThe last site on an account cannot be deleted.

Any status codes returned that are not provided here are generic status codes that can be found here.

Path Params
int64
required

The Id of the site to delete.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain