---
title: "Create or update a notebook schedule"
method: POST
path: "/notebooks/{notebookId}/schedule"
tags: ["Notebooks"]
---

# Create or update a notebook schedule

`POST /notebooks/{notebookId}/schedule`

Creates or replaces the schedule for the project that owns the notebook. Each project has at most one schedule; calling this endpoint with a different notebook in the same project silently re-points the schedule to the new notebook.

## Path parameters

- `notebookId` string, required — Opaque notebook identifier.

## Request body

- UpsertNotebookScheduleBody
  - `cron` string, required — Cron expression for the schedule (e.g. "0 9 * * 1-5").
  - `timezone` string — IANA timezone the cron expression runs in (e.g. "America/New_York").

## Response `200`

Schedule created or updated

- UpsertNotebookScheduleResponse
  - `schedule` NotebookSchedule, required
    - `notebookId` string, required — Opaque notebook identifier.
    - `cron` string, required — Cron expression for the schedule (e.g. "0 9 * * 1-5").
    - `timezone` string, required — IANA timezone the cron expression runs in (e.g. "America/New_York").
    - `nextRunAt` string, date-time, required — Next scheduled run time.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400` — Validation error, e.g. invalid cron expression or timezone
- `401` — Unauthorized
- `403` — Insufficient permissions
- `404` — Notebook not found
- `409` — Project is suspended
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/deepnote/apis/deepnote-public-api.md) · [All operations](https://skmtc.net/deepnote/apis/deepnote-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepnote/deepnote-public-api/revisions/726970fd2992/schema)
