---
title: "Update a custom theme"
method: PATCH
path: "/analytics/v1/settings/themes/{id}"
tags: ["Settings"]
---

# Update a custom theme

`PATCH /analytics/v1/settings/themes/{id}`

Updates the custom theme specified by the Id. Requires Cloud Analytics Admin permission.

## Path parameters

- `id` string, required

## Request body

- UpdateCustomThemeRequest — Request body for updating a custom theme. Only provided fields are modified.
  - `name` string, nullable — The display name of the custom theme.
  - `primaryColor` string — A color in hex notation. Accepts `#RGB`, `#RRGGBB`, or `#RRGGBBAA`.
  - `colors` ThemeColors — 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 `200`

OK - Custom theme updated.

- 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)
