Create_Schedule_Plan API in Python

Hi There,

I am trying to create a schedule with python, but I have no idea what can be a valid value to insert for the crontab param.

Here is my code:

691405e8-6273-4df4-b27c-f63ea52f7612.png

PS. I want the dashboard to be sent “now” and only once.

Do you have any suggestions?

0 1 326
1 REPLY 1

You could do something like this:
 

sdk.scheduled_plan_run_once(body=models.WriteScheduledPlan(INSERTBODYHERE))

For the cron string, I would recommend a website like: https://crontab.guru/

There is also this example: https://github.com/looker-open-source/sdk-codegen/blob/main/examples/python/simple_schedule_plan.py