Skip to main content
PUT
Create or replace the schedule on a saved lake query. When the cron fires, Cloud creates a query run: one execution of the last saved SQL and date range. That run stores a result preview. The schedule does not send email or webhook notifications. Only the query owner or an admin can set a schedule. cron_expression is a five-field cron (minute hour day-of-month month day-of-week). timezone is an IANA timezone such as America/New_York.

Authorization

Blnk Cloud APIs support any one of the following authentication methods. All of them work with your CLOUD_API_KEY or OAUTH_ACCESS_TOKEN.
Pass Authorization: Bearer CLOUD_API_KEY or Authorization: Bearer OAUTH_ACCESS_TOKEN.
string
required
Cloud API key or OAuth access token. Create credentials in API keys or OAuth.

Path

string
required
Unique id of the saved query (lake_query_...). Get it from Get saved query.

Body

string
required
Five-field cron that says when Cloud starts a query run (minute hour day-of-month month day-of-week). Example: 0 9 * * * is every day at 09:00 in timezone.
string
required
IANA timezone Cloud uses to interpret cron_expression, such as America/New_York or UTC. next_run_at is still returned in UTC. For a rolling saved query, Cloud also resolves the date window in this timezone.
boolean
Whether Cloud will fire the schedule. Defaults to true. Send false to keep the schedule stored but skip runs until you enable it again.

Response

string
Unique id of this schedule (lake_query_schedule_...).
string
Saved query this schedule belongs to (lake_query_...).
string
Five-field cron Cloud stored. This is when each query run starts, interpreted in timezone.
string
IANA timezone Cloud uses to interpret the cron, such as America/New_York.
boolean
Whether Cloud will fire the schedule. false keeps the schedule stored but skips runs.
timestamp
Next time Cloud will start a query run for this schedule, in UTC.
timestamp
When Cloud last started a query run from this schedule. Omitted until the first fire.
timestamp
When the schedule was first created. A replace keeps this value.
timestamp
When the cron, timezone, or enabled flag was last changed.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.