---
title: "Set the active theme"
method: PUT
path: "/analytics/v1/settings/active-theme"
tags: ["Settings"]
---

# Set the active theme

`PUT /analytics/v1/settings/active-theme`

Sets the theme active for the authenticated user. Send the reserved
sentinel `themeId: "default"` to clear the active theme and fall back
to the built-in default. Returns the updated active theme.

## Request body

- SetActiveThemeRequest — Request body for setting the active custom or preset theme for the authenticated user.
  - `themeId` string, required — Identifier of the theme to activate. Send the reserved sentinel `"default"` to clear the active theme and fall back to the built-in default.

## Response `200`

OK - Active theme updated.

- ActiveTheme — The theme currently active for the authenticated user.
  - `themeId` string, required — Identifier of the active theme. The reserved sentinel `"default"` is returned when the user is using the built-in default (no custom or preset theme stored).

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