Create company (admin)
Last updated
Last updated
The endpoint "/api/company" is used to create a new company. It is a POST request and requires an API key with either "partner" or "admin" access. The request body must be in JSON format and include the name of the company.
The response to a successful request will be a 200 status code with a JSON object. The object includes the company information, including company constants, the company ID, and the company name. In case of an error, the "error" field in the response will contain a code and a message describing the error.