White Label Admin - Update learning blocks

White Label Admin - Update learning blocks

White label admin only API to update some or all of the learning blocks enabled for this white label.

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

Organization ID

Body
learningBlocksarray of string

The types of the learning blocks that are enabled for this whitelabel.

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

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

Last updated