Version 4.0.24.20 (latest)
Create a theme
Creates a new theme object, returning the theme details, including the created id.
If settings
are not specified, the default theme settings will be copied into the new theme.
The theme name
can only contain alphanumeric characters or underscores. Theme names should not contain any confidential information, such as customer names.
Update an existing theme with Update Theme
Permanently delete an existing theme with Delete Theme
For more information, see Creating and Applying Themes.
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.
Request
POST
/themes
Expand HTTP Body definition...
Expand Theme definition...
can
lock
object
Operations the current user is able to perform on this object
begin_at
string
Timestamp for when this theme becomes active. Null=always
end_at
string
Timestamp for when this theme expires. Null=never
name
string
Name of theme. Can only be alphanumeric and underscores.
settings
Hash of name/value pairs for theme settings. These names get validated.
Response
200: Theme
can
lock
object
Operations the current user is able to perform on this object
begin_at
string
Timestamp for when this theme becomes active. Null=always
end_at
string
Timestamp for when this theme expires. Null=never
name
string
Name of theme. Can only be alphanumeric and underscores.
settings
Hash of name/value pairs for theme settings. These names get validated.
Expand ThemeSettings definition...
background_color
string
Default background color
base_font_size
string
Base font size for scaling fonts (only supported by legacy dashboards)
color_collection_id
string
Optional. ID of color collection to use with the theme. Use an empty string for none.
font_color
string
Default font color
font_family
string
Primary font family
font_source
string
Source specification for font
info_button_color
string
(DEPRECATED) Info button color
primary_button_color
string
Primary button color
show_filters_bar
boolean
Toggle to show filters. Defaults to true.
show_title
boolean
Toggle to show the title. Defaults to true.
text_tile_text_color
string
Text color for text tiles
tile_background_color
string
Background color for tiles
text_tile_background_color
string
Background color for text tiles
tile_text_color
string
Text color for tiles
title_color
string
Color for titles
warn_button_color
string
(DEPRECATED) Warning button color
tile_title_alignment
string
The text alignment of tile titles (New Dashboards)
tile_shadow
boolean
Toggles the tile shadow (not supported)
show_last_updated_indicator
boolean
Toggle to show the dashboard last updated indicator. Defaults to true.
show_reload_data_icon
boolean
Toggle to show reload data icon/button. Defaults to true.
show_dashboard_menu
boolean
Toggle to show the dashboard actions menu. Defaults to true.
show_filters_toggle
boolean
Toggle to show the filters icon/toggle. Defaults to true.
show_dashboard_header
boolean
Toggle to show the dashboard header. Defaults to true.
center_dashboard_title
boolean
Toggle to center the dashboard title. Defaults to false.
dashboard_title_font_size
string
Dashboard title font size.
box_shadow
string
Default box shadow.
page_margin_top
string
Dashboard page margin top.
page_margin_bottom
string
Dashboard page margin bottom.
page_margin_sides
string
Dashboard page margin left and right.
show_explore_header
boolean
Toggle to show the explore page header. Defaults to true.
show_explore_title
boolean
Toggle to show the explore page title. Defaults to true.
show_explore_last_run
boolean
Toggle to show the explore page last run. Defaults to true.
show_explore_timezone
boolean
Toggle to show the explore page timezone. Defaults to true.
show_explore_run_stop_button
boolean
Toggle to show the explore page run button. Defaults to true.
show_explore_actions_button
boolean
Toggle to show the explore page actions button. Defaults to true.
show_look_header
boolean
Toggle to show the look page header. Defaults to true.
show_look_title
boolean
Toggle to show the look page title. Defaults to true.
show_look_last_run
boolean
Toggle to show the look page last run. Defaults to true.
show_look_timezone
boolean
Toggle to show the look page timezone Defaults to true.
show_look_run_stop_button
boolean
Toggle to show the look page run button. Defaults to true.
show_look_actions_button
boolean
Toggle to show the look page actions button. Defaults to true.
tile_title_font_size
string
Font size for tiles.
column_gap_size
string
The vertical gap/gutter size between tiles.
row_gap_size
string
The horizontal gap/gutter size between tiles.
border_radius
string
The border radius for tiles.
400: Bad Request
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
message
lock
string
Error details
documentation_url
lock
string
Documentation link
409: Resource Already Exists
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
message
lock
string
Error details
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
message
lock
string
Error details
documentation_url
lock
string
Documentation link
Examples