Deepnote Public API v2
Schedules API
Schedules that run a notebook on a cron, optionally with their own inputs.
Base URL
https://api.deepnote.com/v2List the schedules of a notebook
Lists every schedule of the notebook, oldest first. The response is complete, with no pagination.
/schedulesParameters
notebookIdqueryrequiredstringNotebook whose schedules are listed.
Responses
▸200Schedules of the notebook
ListSchedulesResponseschedulesrequiredSchedule[]▸400Validation error
ErrorResponsemessagerequiredstring▸401Unauthorized
ErrorResponsemessagerequiredstring▸403Insufficient permissions
ErrorResponsemessagerequiredstring▸404Notebook not found
ErrorResponsemessagerequiredstring▸409Project is suspended
ErrorResponsemessagerequiredstring▸429Rate limit exceeded
ErrorResponsemessagerequiredstringCreate a schedule
Adds a schedule to a notebook, next to any it already has. New schedules do not update the notebook with their run results; turn that on in Deepnote.
/schedulesRequest body
CreateScheduleBodynotebookIdrequiredstringNotebook to create the schedule for.
cronrequiredstringCron expression for the schedule (e.g. "0 9 * * 1-5").
timezonestringIANA timezone the cron expression runs in (e.g. "America/New_York").
namestring | nullOptional name that tells the schedules of one notebook apart. Runs of whitespace become one space, and control characters are rejected.
inputsobject | nullInput values each scheduled run uses, keyed by the input `name` returned from `GET /notebooks/{notebookId}`. Inputs not listed keep the notebook's saved values. Omit to use the saved values for all inputs.
Responses
▸201Schedule created
ScheduleResponseschedulerequiredSchedule▸400Validation error, e.g. invalid cron expression, timezone or input value, input values in a workspace without them, or a schedule that runs more often than hourly without Enterprise
ErrorResponsemessagerequiredstring▸401Unauthorized
ErrorResponsemessagerequiredstring▸403Insufficient permissions
ErrorResponsemessagerequiredstring▸404Notebook not found
ErrorResponsemessagerequiredstring▸409Project is suspended, or the workspace allows only one schedule per notebook
ErrorResponsemessagerequiredstring▸429Rate limit exceeded
ErrorResponsemessagerequiredstringUpdate a schedule
Changes only the fields the body names. Setting `inputs` stops the schedule from updating the notebook, and clearing them does not turn that back on. Like a save in Deepnote, any change resumes a paused schedule and makes the API key owner its owner.
/schedules/{scheduleId}Parameters
scheduleIdpathrequiredstringSchedule identifier.
Request body
UpdateScheduleBodycronstringCron expression for the schedule (e.g. "0 9 * * 1-5").
timezonestringIANA timezone the cron expression runs in (e.g. "America/New_York").
namestring | nullName that tells the schedules of one notebook apart, or null to remove it. Runs of whitespace become one space, and control characters are rejected.
inputsobject | nullReplaces all input values of the schedule, keyed by the input `name` returned from `GET /notebooks/{notebookId}`. To change one value, send the whole map from `GET /schedules` with that value changed. Inputs not listed keep the notebook's saved values. Null or `{}` removes them all.
Responses
▸200Schedule updated
ScheduleResponseschedulerequiredSchedule▸400Validation error, e.g. invalid cron expression, timezone or input value, input values in a workspace without them, or a schedule that runs more often than hourly without Enterprise
ErrorResponsemessagerequiredstring▸401Unauthorized
ErrorResponsemessagerequiredstring▸403Insufficient permissions
ErrorResponsemessagerequiredstring▸404Schedule not found
ErrorResponsemessagerequiredstring▸409Project is suspended
ErrorResponsemessagerequiredstring▸429Rate limit exceeded
ErrorResponsemessagerequiredstringDelete a schedule
Removes the schedule. Not gated on the scheduling entitlement, so a workspace whose plan or member roles changed can still turn a schedule off.
/schedules/{scheduleId}Parameters
scheduleIdpathrequiredstringSchedule identifier.
Responses
▸204Schedule deleted
▸401Unauthorized
ErrorResponsemessagerequiredstring▸403Insufficient permissions
ErrorResponsemessagerequiredstring▸404Schedule not found
ErrorResponsemessagerequiredstring▸409Project is suspended
ErrorResponsemessagerequiredstring▸429Rate limit exceeded
ErrorResponsemessagerequiredstring