Create company (admin)

api-docs Redoc document (api spec)

Create company

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Body
company_namestringOptionalExample: Green earth blockchain
Responses
200

Successful response

application/json
post
/api/company
200

Successful response

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.

Last updated