[]
        
(Showing Draft Content)

Custom-Themes

Custom-Themes

[GET] /api/v2/common/custom-themes

Retrieves a list of custom themes available for the user.

Response

Status Code: 200

Success

CustomThemeViewModel

Status Code: 400

Bad Request

ServerPluginError

[POST] /api/v2/common/custom-themes

Creates a new custom theme based on the provided model.

Request Schema

CreateCustomThemeRequestModel

Response

Status Code: 200

Success

CreateUpdateCustomThemeResponseModel

Status Code: 400

Bad Request

ServerPluginError

[GET] /api/v2/common/custom-themes/status/{sessionId}

Retrieves the status of a theme building session.

Parameters

Name Type Located In Description
sessionIdRequired string path The ID of the session to check the status for.

Response

Status Code: 200

Success

ThemeBuilderStatusViewModel

Status Code: 400

Bad Request

ServerPluginError

[POST] /api/v2/common/custom-themes/{id}/upgrade

Upgrades a custom theme to a new version.

Parameters

Name Type Located In Description
idRequired string path The ID of the theme to upgrade.

Response

Status Code: 200

Success

UpgradeCustomThemeResponseModel

Status Code: 400

Bad Request

ServerPluginError

Status Code: 404

Not Found

ServerPluginError

[PUT] /api/v2/common/custom-themes/{id}

Saves changes to an existing custom theme.

Parameters

Name Type Located In Description
idRequired string path The ID of the theme to save changes for.

Request Schema

SaveCustomThemeRequestModel

Response

Status Code: 200

Success

CreateUpdateCustomThemeResponseModel

Status Code: 400

Bad Request

ServerPluginError

Status Code: 404

Not Found

ServerPluginError

[DELETE] /api/v2/common/custom-themes/{id}

Deletes a custom theme identified by the specified ID. This method checks if the theme exists and if it is currently in use before attempting to delete it.

Parameters

Name Type Located In Description
idRequired string path The unique identifier of the custom theme to be deleted.

Response

Status Code: 204

No Content

Status Code: 400

Bad Request

ServerPluginError

Status Code: 404

Not Found

ServerPluginError

Models

Ƭ CustomThemeViewModel

Represents the view model for custom themes.

Name Type Description Example
listNullable CustomThemeItem Gets or sets the list of custom theme items.
canEdit Boolean Gets or sets a value indicating whether the user can edit the theme.
hashProductionVersion Boolean Gets or sets a value indicating whether to hash the production version.
pluginStyleCacheDirectoryNullable Array<string> Gets or sets the list of plugin style cache directories.

Ƭ CustomThemeItem

Represents an individual custom theme item.

Name Type Description Example
idNullable string Gets or sets the unique identifier of the theme.
created ISO DateTime Sting Gets or sets the creation date of the theme.
pluginVersionNullable string Gets or sets the plugin version associated with the theme.
displayNameNullable string Gets or sets the display name of the theme.
variables ThemeVariablesViewModel
outOfDate Boolean Gets or sets a value indicating whether the theme is out of date.

Ƭ ThemeVariablesViewModel

Represents the view model for theme variables.

Name Type Description Example
dark_theme Boolean Gets or initializes a value indicating whether the dark theme is enabled.
true
accent1Nullable string Gets or initializes the first accent color.
#FF5733
accent2Nullable string Gets or initializes the second accent color.
#33FF57
content_bgNullable string Gets or initializes the background color for content.
#FFFFFF
panels_bgNullable string Gets or initializes the background color for panels.
#F0F0F0
content_textNullable string Gets or initializes the text color for content.
#000000
text_contrastNullable string Gets or initializes the contrast color for text.
#FFFFFF
nav_bgNullable string Gets or initializes the background color for navigation.
#007BFF
nav_textNullable string Gets or initializes the text color for navigation.
#FFFFFF
portal_header_bgNullable string Gets or initializes the background color for the portal header.
#343A40
portal_header_textNullable string Gets or initializes the text color for the portal header.
#FFFFFF
toolbar_bgNullable string Gets or initializes the background color for the toolbar.
#6C757D
toolbar_textNullable string Gets or initializes the text color for the toolbar.
#FFFFFF
toolbar_heightNullable string Gets or initializes the height of the toolbar.
50px

Ƭ ServerPluginError

Server plugin error

Name Type Description Example
codeNullable string error code
messageNullable string error message
contextNullable string error context
innerError ServerPluginError

Ƭ CreateUpdateCustomThemeResponseModel

Represents the response model for creating or updating a custom theme.

Name Type Description Example
sessionIdNullable string Gets or sets the session identifier for the create/update operation.

Ƭ CreateCustomThemeRequestModel

Represents the request model for creating a custom theme.

Name Type Description Example
displayNameNullable string Gets or sets the display name of the custom theme.
variables ThemeVariablesViewModel

Ƭ ThemeBuilderStatusViewModel

Represents the view model for the status of the theme builder.

Name Type Description Example
statusEnum ThemeBuilderStatusEnumViewModel
descriptionNullable string A description of the current status.
errorCodeNullable string An error code if the status is failed.
documentIdNullable string The document identifier associated with the theme.
progress any The progress percentage of the theme building process.

Ƭ ThemeBuilderStatusEnumViewModel

Enum:

  • RUNNING
  • SUCCESS
  • FAILED

Represents the possible statuses of the theme builder.

* RUNNING - 0 - The theme builder is currently running.
* SUCCESS - 1 - The theme building process was successful.
* FAILED - 2 - The theme building process has failed.

Ƭ UpgradeCustomThemeResponseModel

Represents the response model for upgrading a custom theme.

Name Type Description Example
versionNullable string Gets or sets the version of the upgraded theme.
sessionIdNullable string Gets or sets the session identifier for the upgrade.

Ƭ SaveCustomThemeRequestModel

Represents the request model for saving a custom theme.

Name Type Description Example
commentNullable string Gets or sets the comment associated with the custom theme.
variables ThemeVariablesViewModel
sessionIdNullable string Gets or sets the session identifier for the custom theme.