Skip to main content

set-active-theme

dci set-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

Content-Type: application/json

Schema

{
"type": "object",
"required": [
"themeId"
],
"description": "Request body for setting the active custom or preset theme for the authenticated user.",
"properties": {
"themeId": {
"type": "string",
"default": "default",
"description": "Identifier of the theme to activate. Send the reserved sentinel\n`\"default\"` to clear the active theme and fall back to the built-in\ndefault."
}
}
}

Responses

200 (application/json)

OK - Active theme updated.

{
"type": "object",
"required": [
"themeId"
],
"description": "The theme currently active for the authenticated user.",
"properties": {
"themeId": {
"type": "string",
"default": "default",
"description": "Identifier of the active theme. The reserved sentinel `\"default\"` is\nreturned when the user is using the built-in default (no custom or\npreset theme stored)."
}
}
}

400 (application/json)

Bad Request - The server cannot process the request, often due to a malformed request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

401 (application/json)

Unauthorized - Invalid API key.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

403 (application/json)

Forbidden - The client is not authorized to perform the request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

404 (application/json)

Not Found - The requested resource does not exist.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

Aliases: set-active-theme, setactivetheme