Skip to main content

update

client.themes.update(themeId: string, data: UpdateThemeRequest): Promise<Theme>

Updates an existing theme's configuration.

Modifies the properties, colors, or settings of a theme identified by its ID. Use this to make incremental changes to a theme without recreating it from scratch.

Parameters

ParameterTypeRequiredDescription
themeIdstringYesThe unique identifier of the theme to update
dataUpdateThemeRequestYesRequest containing the theme updates to apply

Returns

Promise<Theme> — A promise that resolves to the updated Theme object

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.themes.update('themeId', /* UpdateThemeRequest */);
console.log(result);