Delete an establishment
DELETE/api/v1/establishments/:id
Delete an establishment by ID.
Authorization is based on the OAuth application's tenant access to the establishment's company workspace.
Important: Establishments with organizational unit assignments cannot be deleted. You must first remove all organizational unit assignments before deleting the establishment.
Request
Responses
- 204
- 401
- 404
- 422
The establishment was deleted. The response body is empty.
The request is missing a bearer token, or the token is invalid or expired.
The establishment does not exist, or it belongs to a workspace the OAuth application cannot access.
The establishment has organizational unit assignments and cannot be deleted; remove the assignments first.