---
title: "Patch Notebook Cell"
method: POST
path: "/notebook/cell"
tags: ["runtime_mutations", "notebook"]
---

# Patch Notebook Cell

`POST /notebook/cell`

Apply a user cell-content edit to draft + live notebook state.

Synchronous HTTP equivalent of the ``notebook_cell_user_edit``
socket event. Used by the frontend to flush a pending edit before
invoking ``/execute`` so cell-id execution sees the user's latest
content. A missed patch is a failed precondition for execution because
continuing would run stale backend state.

## Request body

- CellPatchRequest
  - `notebook_id` string, required
  - `notebook_path` string, required
  - `cell_id` string, required
  - `content` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `abf76937a751` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/notebook/cell/post.md)

---

[API](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/revisions/397ad3a1d858?raw)
