Color Palettes

Create custom color palette

Changed on
<Note> This endpoint requires **Organization Admin** permissions. </Note>

Create a custom chart color palette. Palette names must be unique per type within the organization.

post/v1/color-palettes

Request

  • Base URL
    https://blobsrus.omniapp.co/api
  • URL
    https://blobsrus.omniapp.co/api/v1/color-palettes
  • Auth
    • HTTP bearer
    • or HTTP bearer

Request body

colorsstring[] required

Ordered hex colors. Discrete palettes are used in order; continuous palettes interpolate between them.

namestring required

Palette name, unique per type within the organization

type'discrete' | 'continuous' required
  • discrete palettes color categories
  • continuous palettes define a gradient for numeric scales

Example request

{
  "colors": [
    "#1f77b4",
    "#ff7f0e",
    "#2ca02c"
  ],
  "name": "Brand colors",
  "type": "discrete"
}

Response

Color palette created

colorsstring[]

Ordered hex colors. Discrete palettes are used in order; continuous palettes interpolate between them.

idstring uuid

Palette ID. Visualizations reference the palette by this value.

created_atstring date-time

When the palette was created

namestring

Palette name, unique per type within the organization

type'discrete' | 'continuous'
  • discrete palettes color categories
  • continuous palettes define a gradient for numeric scales
updated_atstring date-time

When the palette was last updated

Example response

{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Brand colors",
  "type": "discrete",
  "colors": [
    "#1f77b4",
    "#ff7f0e",
    "#2ca02c"
  ],
  "created_at": "2026-09-10T10:00:00.000Z",
  "updated_at": "2026-09-10T10:00:00.000Z"
}

Changes