v1

latestOpenAPI 3.1.02026-08-066984441.1 MB
companies

Deletes the company with the specified id.

There are several ways to delete a company. Look into the property description of the post model to get detailed information. <br />If the post is executed without a model, the default process 'delete-only-company' will be executed. <br />For the operation 'delete-all-without-timeentries' project-master-data write permissions are required on all projects of the company.

<Check title="Required Permissions" icon="key">The user must be an admin or have company-master-data:write permissions.</Check>

post/companies/{companyId}/delete

Path parameters

companyIdstring uuid required

The id of the company.

Headers

Authorizationstring required

Bearer authentication

Request body

moveToCompanystring uuid nullable

Moves all related objects to this company. Related projects and tasks (including their time entries) will be connected to this company. Have to set if 'DeleteOperation' contains 'move'.

deleteOperationstring nullable

Defines the operation to delete a company. Possible operations are 'move': Move related objects to another company. 'delete-only-company': Delete only the company. Related objects loose the company information. 'delete-all-without-timeentries': Delete all related objects apart from time entries. 'delete-all': Delete all.

Response

No Content

object required