ESET Online Help

Search
Select the topic

Delete

Call description

This request deletes one of the following company types, specified by the companyId parameter:

MSP Manager

MSP

Managed MSP

Customer

The company must be in a suspended state before users can delete it. After the company is deleted, it is not displayed in the EMA2 web client or API. After the deletion, the licenses of the deleted company are suspended.

Users can only delete a company that is their company's subordinate (lower in the hierarchy).

This API call requires authorization; the user has to be logged in.

Request URL: https://mspapi.eset.com/api/Company/Delete

This request is a POST call type.

Call structure

{
  "companyId": "string"
}

Call parameters

Parameter

Description

companyId

companyId is a unique identifier of a company. To get the companyId of the logged in user, use /api/User/Current call.

Response structure

The response contains data in the JSON format.

If the call is successful, it returns HTTP code 200 (without any data).

Troubleshooting

ESET MSP Administrator 2 API uses standardized error codes. If you are getting errors or unexpected responses, see the Troubleshooting API for common problems and the list of error codes.

List of error codes