Connect / Client / update_workspace_theme

update_workspace_theme

Connect.Client.update_workspace_theme(**kwargs)

Updates the theme configuration for a workspace, including colors and styling.

See also: AWS API Documentation

Request Syntax

response = client.update_workspace_theme(
    InstanceId='string',
    WorkspaceId='string',
    Theme={
        'Light': {
            'Palette': {
                'Header': {
                    'Background': 'string',
                    'Text': 'string',
                    'TextHover': 'string',
                    'InvertActionsColors': True|False
                },
                'Navigation': {
                    'Background': 'string',
                    'TextBackgroundHover': 'string',
                    'TextBackgroundActive': 'string',
                    'Text': 'string',
                    'TextHover': 'string',
                    'TextActive': 'string',
                    'InvertActionsColors': True|False
                },
                'Canvas': {
                    'ContainerBackground': 'string',
                    'PageBackground': 'string',
                    'ActiveBackground': 'string'
                },
                'Primary': {
                    'Default': 'string',
                    'Active': 'string',
                    'ContrastText': 'string'
                }
            },
            'Images': {
                'Logo': {
                    'Default': 'string',
                    'Favicon': 'string'
                }
            },
            'Typography': {
                'FontFamily': {
                    'Default': 'Arial'|'Courier New'|'Georgia'|'Times New Roman'|'Trebuchet'|'Verdana'
                }
            }
        },
        'Dark': {
            'Palette': {
                'Header': {
                    'Background': 'string',
                    'Text': 'string',
                    'TextHover': 'string',
                    'InvertActionsColors': True|False
                },
                'Navigation': {
                    'Background': 'string',
                    'TextBackgroundHover': 'string',
                    'TextBackgroundActive': 'string',
                    'Text': 'string',
                    'TextHover': 'string',
                    'TextActive': 'string',
                    'InvertActionsColors': True|False
                },
                'Canvas': {
                    'ContainerBackground': 'string',
                    'PageBackground': 'string',
                    'ActiveBackground': 'string'
                },
                'Primary': {
                    'Default': 'string',
                    'Active': 'string',
                    'ContrastText': 'string'
                }
            },
            'Images': {
                'Logo': {
                    'Default': 'string',
                    'Favicon': 'string'
                }
            },
            'Typography': {
                'FontFamily': {
                    'Default': 'Arial'|'Courier New'|'Georgia'|'Times New Roman'|'Trebuchet'|'Verdana'
                }
            }
        }
    }
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

    The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • WorkspaceId (string) –

    [REQUIRED]

    The identifier of the workspace.

  • Theme (dict) –

    The theme configuration, including color schemes and visual styles.

    • Light (dict) –

      The theme configuration for light mode.

      • Palette (dict) –

        The color palette configuration for the workspace theme.

        • Header (dict) –

          The color configuration for the header area.

          • Background (string) –

            The background color of the header.

          • Text (string) –

            The text color in the header.

          • TextHover (string) –

            The text color when hovering over header elements.

          • InvertActionsColors (boolean) –

            Whether to invert the colors of action buttons in the header.

        • Navigation (dict) –

          The color configuration for the navigation area.

          • Background (string) –

            The background color of the navigation area.

          • TextBackgroundHover (string) –

            The background color when hovering over navigation text.

          • TextBackgroundActive (string) –

            The background color for active navigation items.

          • Text (string) –

            The text color in the navigation area.

          • TextHover (string) –

            The text color when hovering over navigation items.

          • TextActive (string) –

            The text color for active navigation items.

          • InvertActionsColors (boolean) –

            Whether to invert the colors of action buttons in the navigation area.

        • Canvas (dict) –

          The color configuration for the canvas area.

          • ContainerBackground (string) –

            The background color for container elements.

          • PageBackground (string) –

            The background color for page elements.

          • ActiveBackground (string) –

            The background color for active elements.

        • Primary (dict) –

          The primary color configuration used throughout the workspace.

          • Default (string) –

            The default primary color used throughout the workspace.

          • Active (string) –

            The primary color used for active states.

          • ContrastText (string) –

            The text color that contrasts with the primary color for readability.

      • Images (dict) –

        The image assets used in the workspace theme.

        • Logo (dict) –

          The logo images used in the workspace.

          • Default (string) –

            The default logo image displayed in the workspace.

          • Favicon (string) –

            The favicon image displayed in the browser tab.

      • Typography (dict) –

        The typography configuration for the workspace theme.

        • FontFamily (dict) –

          The font family configuration for text in the workspace.

          • Default (string) –

            The default font family to use in the workspace theme.

    • Dark (dict) –

      The theme configuration for dark mode.

      • Palette (dict) –

        The color palette configuration for the workspace theme.

        • Header (dict) –

          The color configuration for the header area.

          • Background (string) –

            The background color of the header.

          • Text (string) –

            The text color in the header.

          • TextHover (string) –

            The text color when hovering over header elements.

          • InvertActionsColors (boolean) –

            Whether to invert the colors of action buttons in the header.

        • Navigation (dict) –

          The color configuration for the navigation area.

          • Background (string) –

            The background color of the navigation area.

          • TextBackgroundHover (string) –

            The background color when hovering over navigation text.

          • TextBackgroundActive (string) –

            The background color for active navigation items.

          • Text (string) –

            The text color in the navigation area.

          • TextHover (string) –

            The text color when hovering over navigation items.

          • TextActive (string) –

            The text color for active navigation items.

          • InvertActionsColors (boolean) –

            Whether to invert the colors of action buttons in the navigation area.

        • Canvas (dict) –

          The color configuration for the canvas area.

          • ContainerBackground (string) –

            The background color for container elements.

          • PageBackground (string) –

            The background color for page elements.

          • ActiveBackground (string) –

            The background color for active elements.

        • Primary (dict) –

          The primary color configuration used throughout the workspace.

          • Default (string) –

            The default primary color used throughout the workspace.

          • Active (string) –

            The primary color used for active states.

          • ContrastText (string) –

            The text color that contrasts with the primary color for readability.

      • Images (dict) –

        The image assets used in the workspace theme.

        • Logo (dict) –

          The logo images used in the workspace.

          • Default (string) –

            The default logo image displayed in the workspace.

          • Favicon (string) –

            The favicon image displayed in the browser tab.

      • Typography (dict) –

        The typography configuration for the workspace theme.

        • FontFamily (dict) –

          The font family configuration for text in the workspace.

          • Default (string) –

            The default font family to use in the workspace theme.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions