DELETE api/site/{id}
This method deletes a site within a company. However, there are conditions on being able to delete a site. These are:
- Site should not be the last site within the company
- Site should not contain any billable entities. i.e. Service Charges, active CLIs
- Site should not have been invoiced in the last 3 months.
- Site should not have any inflight orders.
Error messages
- 404/NotFound - No site found with id x - Specified ID is not assigned to a site
- 403/Forbidden - Validation failed X (when did not pass one or more delete conditions) - The reason why the site cannot be deleted.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | The ID of the site to be deleted. | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
None.