Version 4.0.23.12
Create a dashboard filter on the dashboard with a specific id.
Request
POST
/dashboard_filters
Datatype
Description
Request
body
Expand HTTP Body definition...
body
Dashboard Filter
Expand CreateDashboardFilter definition...
id
lock
Unique Id
dashboard_id
Id of Dashboard
name
Name of filter
title
Title of filter
type
Type of filter: one of date, number, string, or field
default_value
Default value of filter
model
Model of filter (required if type = field)
explore
Explore of filter (required if type = field)
dimension
Dimension of filter (required if type = field)
field
lock
Field information
row
Display order of this filter relative to other filters
listens_to_filters
allow_multiple_values
Whether the filter allows multiple filter values (deprecated in the latest version of dashboards)
required
Whether the filter requires a value to run the dashboard
ui_config
The visual configuration for this filter. Used to set up how the UI for this filter should appear.
query
Expand HTTP Query definition...
fields
Requested fields
Response
200: Dashboard Filter
Datatype
Description
(object)
can
lock
Operations the current user is able to perform on this object
id
lock
Unique Id
dashboard_id
lock
Id of Dashboard
name
Name of filter
title
Title of filter
type
Type of filter: one of date, number, string, or field
default_value
Default value of filter
model
Model of filter (required if type = field)
explore
Explore of filter (required if type = field)
dimension
Dimension of filter (required if type = field)
field
lock
Field information
row
Display order of this filter relative to other filters
listens_to_filters
allow_multiple_values
Whether the filter allows multiple filter values (deprecated in the latest version of dashboards)
required
Whether the filter requires a value to run the dashboard
ui_config
The visual configuration for this filter. Used to set up how the UI for this filter should appear.
400: Bad Request
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
409: Resource Already Exists
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
422: Validation Error
Datatype
Description
(object)
message
lock
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
Field with error
code
lock
Error code
message
lock
Error info message
documentation_url
lock
Documentation link
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
Examples
TypeScript
https://github.com/looker-open-source/sdk-codegen/blob/main/packages/sdk-node/test/methods.spec.ts |
Python
https://github.com/looker-open-source/sdk-codegen/blob/main/python/tests/integration/test_methods.py |