White Label Admin - Update theme colors

White Label Admin - Update theme colors

White label admin only API to update some or all theme colors.

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

Organization ID

Body
primaryColorstring

Primary color in hex format

primaryColorGradientEndstring

Primary color gradient end in hex format

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/theme/colors', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated