White Label Admin - Create new organization within white label context

White Label Admin - Create new organization within white label context

Create a new organization. This is an API only available to white label admins

POSThttps://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/whitelabel/organizations
Path parameters
organizationId*integer

Organization ID

Body
organizationName*string

The name of the organization.

Example: "EdgeImpulse Inc."
adminIdinteger

Unique identifier of the administrator of the new organization.

Example: 1
adminEmailstring

Email of the administrator of the new organization.

Example: "jan@edgeimpulse.com"
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

id*integer

Organization ID for the new organization

apiKey*string

API key for the new organization (this is shown only once)

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/whitelabel/organizations', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "organizationName": "EdgeImpulse Inc."
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "apiKey": "text"
}

Last updated