How can I request dashboard by API with time range filters?

Hi, I’m trying to generate PDF of my dashboard via Looker API in python. How can I set filters with time range?

I’m using the looker_sdk package and I know how to set filter with only one value, like ‘Date’: ‘2021-01-01’, but what is the code if I want to run the dashboard for a period of time, for example, from ‘2021-01-01’ to ‘2021-02-01’? Below is what I chose in the dashboard views.

6664e108-58e7-4cb5-adce-d5fd9a01c3ca.png


Below is my code and the ‘Date’ part has an error.

dashboard_title = 'My Dashboard'    # dashboard title
pdf_style = 'tiled' # PDF style
pdf_width = 1000 # PDF pdf_width
pdf_height = 842 # PDF pdf_height
dash_filter = {'Brand': 'ABC',
'Account': 'Client - ABC',
'Season':'Spring 2021',
'Date': 'is in range, 2021-02-01, 2021-04-01'
} # {"filter1": "value", "filter2": "value",...}

Please let me know how can I solve the problem, thanks!

0 1 933