Best model for proactive agents? Explore our benchmark
Get started
All endpoint groups

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/v2

List the schedules of a notebook

Lists every schedule of the notebook, oldest first. The response is complete, with no pagination.

get/schedules

Parameters

notebookIdqueryrequiredstring

Notebook whose schedules are listed.

Responses

▸200Schedules of the notebook
application/jsonListSchedulesResponse
schedulesrequiredSchedule[]
▸400Validation error
application/jsonErrorResponse
messagerequiredstring
▸401Unauthorized
application/jsonErrorResponse
messagerequiredstring
▸403Insufficient permissions
application/jsonErrorResponse
messagerequiredstring
▸404Notebook not found
application/jsonErrorResponse
messagerequiredstring
▸409Project is suspended
application/jsonErrorResponse
messagerequiredstring
▸429Rate limit exceeded
application/jsonErrorResponse
messagerequiredstring

Create 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.

post/schedules

Request body

required
application/jsonCreateScheduleBody
notebookIdrequiredstring

Notebook to create the schedule for.

cronrequiredstring

Cron expression for the schedule (e.g. "0 9 * * 1-5").

timezonestring

IANA timezone the cron expression runs in (e.g. "America/New_York").

namestring | null

Optional name that tells the schedules of one notebook apart. Runs of whitespace become one space, and control characters are rejected.

inputsobject | null

Input 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
application/jsonScheduleResponse
schedulerequiredSchedule
▸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
application/jsonErrorResponse
messagerequiredstring
▸401Unauthorized
application/jsonErrorResponse
messagerequiredstring
▸403Insufficient permissions
application/jsonErrorResponse
messagerequiredstring
▸404Notebook not found
application/jsonErrorResponse
messagerequiredstring
▸409Project is suspended, or the workspace allows only one schedule per notebook
application/jsonErrorResponse
messagerequiredstring
▸429Rate limit exceeded
application/jsonErrorResponse
messagerequiredstring

Update 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.

patch/schedules/{scheduleId}

Parameters

scheduleIdpathrequiredstring

Schedule identifier.

Request body

required
application/jsonUpdateScheduleBody
cronstring

Cron expression for the schedule (e.g. "0 9 * * 1-5").

timezonestring

IANA timezone the cron expression runs in (e.g. "America/New_York").

namestring | null

Name 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 | null

Replaces 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
application/jsonScheduleResponse
schedulerequiredSchedule
▸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
application/jsonErrorResponse
messagerequiredstring
▸401Unauthorized
application/jsonErrorResponse
messagerequiredstring
▸403Insufficient permissions
application/jsonErrorResponse
messagerequiredstring
▸404Schedule not found
application/jsonErrorResponse
messagerequiredstring
▸409Project is suspended
application/jsonErrorResponse
messagerequiredstring
▸429Rate limit exceeded
application/jsonErrorResponse
messagerequiredstring

Delete 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.

delete/schedules/{scheduleId}

Parameters

scheduleIdpathrequiredstring

Schedule identifier.

Responses

▸204Schedule deleted
▸401Unauthorized
application/jsonErrorResponse
messagerequiredstring
▸403Insufficient permissions
application/jsonErrorResponse
messagerequiredstring
▸404Schedule not found
application/jsonErrorResponse
messagerequiredstring
▸409Project is suspended
application/jsonErrorResponse
messagerequiredstring
▸429Rate limit exceeded
application/jsonErrorResponse
messagerequiredstring