Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.25.14 (latest)
Set the global default theme by theme name
Only Admin users can call this function.
Only an active theme with no expiration (end_at not set) can be assigned as the default theme. As long as a theme has an active record with no expiration, it can be set as the default.
Create Theme has detailed information on rules for default and active themes
Returns the new specified default theme object.
Note: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or https://console.cloud.google.com/support/cases/ to update your license for this feature.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# Set Default Theme\n\nVersion 4.0.25.14 (latest)\n\n### Set the global default theme by theme name\n\nOnly Admin users can call this function.\n\nOnly an active theme with no expiration (`end_at` not set) can be assigned as the default theme. As long as a theme has an active record with no expiration, it can be set as the default.\n\n[Create Theme](/looker/docs/reference/looker-api/latest/methods/Theme/create) has detailed information on rules for default and active themes\n\nReturns the new specified default theme object.\n\n**Note** : Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or \u003chttps://console.cloud.google.com/support/cases/\u003e to update your license for this feature.\n\nRequest\n-------\n\nPUT /themes/default \nDatatype \nDescription \nRequest \nHTTP Request \nquery \nHTTP Query \nExpand HTTP Query definition... \nname \nstring \nName of theme to set as default\n\nResponse\n--------\n\n### 200: Theme\n\nDatatype \nDescription \n(object) \n[Theme](/looker/docs/reference/looker-api/latest/types/Theme) \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nbegin_at \nstring \nTimestamp for when this theme becomes active. Null=always \nend_at \nstring \nTimestamp for when this theme expires. Null=never \nid \n*lock* \nstring \nUnique Id \nname \nstring \nName of theme. Can only be alphanumeric and underscores. \nsettings \n[ThemeSettings](/looker/docs/reference/looker-api/latest/types/ThemeSettings) \nHash of name/value pairs for theme settings. These names get validated.\nExpand ThemeSettings definition... \nbackground_color \nstring \nDefault background color \nbase_font_size \nstring \nBase font size for scaling fonts (only supported by legacy dashboards) \ncolor_collection_id \nstring \nOptional. ID of color collection to use with the theme. Use an empty string for none. \nfont_color \nstring \nDefault font color \nfont_family \nstring \nPrimary font family \nfont_source \nstring \nSource specification for font \ninfo_button_color \nstring \n(DEPRECATED) Info button color \nprimary_button_color \nstring \nPrimary button color \nshow_filters_bar \nboolean \nToggle to show filters. Defaults to true. \nshow_title \nboolean \nToggle to show the title. Defaults to true. \ntext_tile_text_color \nstring \nText color for text tiles \ntile_background_color \nstring \nBackground color for tiles \ntext_tile_background_color \nstring \nBackground color for text tiles \ntile_text_color \nstring \nText color for tiles \ntitle_color \nstring \nColor for titles \nwarn_button_color \nstring \n(DEPRECATED) Warning button color \ntile_title_alignment \nstring \nThe text alignment of tile titles (New Dashboards) \ntile_shadow \nboolean \nToggles the tile shadow (not supported) \nshow_last_updated_indicator \nboolean \nToggle to show the dashboard last updated indicator. Defaults to true. \nshow_reload_data_icon \nboolean \nToggle to show reload data icon/button. Defaults to true. \nshow_dashboard_menu \nboolean \nToggle to show the dashboard actions menu. Defaults to true. \nshow_filters_toggle \nboolean \nToggle to show the filters icon/toggle. Defaults to true. \nshow_dashboard_header \nboolean \nToggle to show the dashboard header. Defaults to true. \ncenter_dashboard_title \nboolean \nToggle to center the dashboard title. Defaults to false. \ndashboard_title_font_size \nstring \nDashboard title font size. \nbox_shadow \nstring \nDefault box shadow. \npage_margin_top \nstring \nDashboard page margin top. \npage_margin_bottom \nstring \nDashboard page margin bottom. \npage_margin_sides \nstring \nDashboard page margin left and right. \nshow_explore_header \nboolean \nToggle to show the explore page header. Defaults to true. \nshow_explore_title \nboolean \nToggle to show the explore page title. Defaults to true. \nshow_explore_last_run \nboolean \nToggle to show the explore page last run. Defaults to true. \nshow_explore_timezone \nboolean \nToggle to show the explore page timezone. Defaults to true. \nshow_explore_run_stop_button \nboolean \nToggle to show the explore page run button. Defaults to true. \nshow_explore_actions_button \nboolean \nToggle to show the explore page actions button. Defaults to true. \nshow_look_header \nboolean \nToggle to show the look page header. Defaults to true. \nshow_look_title \nboolean \nToggle to show the look page title. Defaults to true. \nshow_look_last_run \nboolean \nToggle to show the look page last run. Defaults to true. \nshow_look_timezone \nboolean \nToggle to show the look page timezone Defaults to true. \nshow_look_run_stop_button \nboolean \nToggle to show the look page run button. Defaults to true. \nshow_look_actions_button \nboolean \nToggle to show the look page actions button. Defaults to true. \ntile_title_font_size \nstring \nFont size for tiles. \ncolumn_gap_size \nstring \nThe vertical gap/gutter size between tiles. \nrow_gap_size \nstring \nThe horizontal gap/gutter size between tiles. \nborder_radius \nstring \nThe border radius for tiles.\n\n### 400: Bad Request\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 404: Not Found\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 422: Validation Error\n\nDatatype \nDescription \n(object) \n[ValidationError](/looker/docs/reference/looker-api/latest/types/ValidationError) \nmessage \n*lock* \nstring \nError details \nerrors \n[ValidationErrorDetail](/looker/docs/reference/looker-api/latest/types/ValidationErrorDetail)\\[\\] \nExpand ValidationErrorDetail definition... \nfield \n*lock* \nstring \nField with error \ncode \n*lock* \nstring \nError code \nmessage \n*lock* \nstring \nError info message \ndocumentation_url \n*lock* \nstring \nDocumentation link \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 429: Too Many Requests\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link"]]