---
title: "Create a custom theme"
method: POST
path: "/analytics/v1/settings/themes"
tags: ["Settings"]
---

# Create a custom theme

`POST /analytics/v1/settings/themes`

Creates a new custom color theme. Requires Cloud Analytics Admin permission.

## Request body

- CreateCustomThemeRequest — Request body for creating a custom theme.
  - `name` string, required — The display name of the custom theme.
  - `primaryColor` string, required — A color in hex notation. Accepts `#RGB`, `#RRGGBB`, or `#RRGGBBAA`.
  - `colors` ThemeColors, required — Palettes for light and dark display modes. Each palette must contain between 1 and 32 hex colors.
    - `light` HexColor[], required — Colors used when the report is displayed in light mode.
    - `dark` HexColor[], required — Colors used when the report is displayed in dark mode.

## Response `201`

Created - Custom theme created successfully.

- CustomTheme — A custom color theme applied to Cloud Analytics reports.
  - `id` string, required — The unique identifier of the custom theme.
  - `name` string, required — The display name of the custom theme.
  - `primaryColor` string, required — A color in hex notation. Accepts `#RGB`, `#RRGGBB`, or `#RRGGBBAA`.
  - `colors` ThemeColors, required — Palettes for light and dark display modes. Each palette must contain between 1 and 32 hex colors.
    - `light` HexColor[], required — Colors used when the report is displayed in light mode.
    - `dark` HexColor[], required — Colors used when the report is displayed in dark mode.
  - `createTime` string, date-time — The creation time of the custom theme.
  - `updateTime` string, date-time — The time when the custom theme was last updated.

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `404` — Not Found - The requested resource does not exist.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
