---
title: "Create a custom color palette"
method: POST
path: "/api/v1/color-palettes"
tags: ["Color Palettes"]
---

# Create a custom color palette

`POST /api/v1/color-palettes`

## Request

- Base URL: `https://omniapp.co` (the document declares no server; this is the origin it was published from)
- URL: `https://omniapp.co/api/v1/color-palettes`
- Auth: HTTP bearer

Creates a custom chart color palette. Requires the Manage Config permission. Palette names must be unique per type within the organization.

## Request body

- ColorPalettesCreateBody
  - `colors` string[], required: Ordered hex colors. Discrete palettes are used in order; continuous palettes interpolate between them.
  - `name` string, 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

## Response `201`

Color palette created

- ColorPalettesCreateResponse
  - `colors` string[], required: Ordered colors as stored, usually hex values
  - `created_at` string, date-time, required: When the palette was created
  - `id` string, uuid, required: Palette ID. Visualizations reference the palette by this value.
  - `name` string, required: Palette name
  - `type` 'discrete' | 'continuous', required: 'discrete' palettes color categories; 'continuous' palettes define a gradient for numeric scales
  - `updated_at` string, date-time, required: When the palette was last updated

## Other responses

- `400`: Invalid request body
- `401`: Authentication required
- `403`: Requires the Manage Config permission
- `409`: A palette with this name and type already exists

## Changes

- **2026-09-15** `febf0a61f153`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omniapp/apis/omni-api/changes/api/v1/color-palettes/post.md)

---

[API](https://skmtc.dev/omniapp/apis/omni-api.md) - [All operations](https://skmtc.dev/omniapp/apis/omni-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omniapp/apis/omni-api/revisions/76b40ebc2292?raw)
