---
title: "Save Draft"
method: POST
path: "/notebook/draft"
tags: ["runtime_mutations", "notebook"]
---

# Save Draft

`POST /notebook/draft`

Create or update a session draft (debounced autosave path).

No-ops when a generation is active: the agent's turn notebook is
the sole draft writer, and user edits flow over the
``notebook_cell_user_*`` socket events.

## Request body

- DraftSaveRequest
  - `notebook_id` string, required
  - `cells` Cell[]
    - `type` 'code' | 'markdown' | 'raw'
    - `content` string
    - `outputs` SerializedOutput[]
      - `type` string, required
      - `content` unknown, required
      - `execution_time_ms` integer, nullable
    - `cellId` string
    - `executionCount` integer, nullable
    - `executionTimeMs` integer, nullable
    - `executedAtMs` integer, nullable
    - `metadata` object
  - `metadata` object
  - `path` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.net/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quadrillion/quadrillion-cloud-api/revisions/399077308c86/schema)
