---
title: "Attach Notebook To Session"
method: POST
path: "/v1/store/chat-sessions/{chat_session_id}/attach-notebook"
tags: ["store"]
---

# Attach Notebook To Session

`POST /v1/store/chat-sessions/{chat_session_id}/attach-notebook`

## Request

- Base URL: `https://api.quadrillion.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.quadrillion.io/v1/store/chat-sessions/{chat_session_id}/attach-notebook`
- Auth: none declared

## Path parameters

- `chat_session_id` string, required

## Request body

- AttachNotebookRequest
  - `notebook_id` string, required
  - `notebook_path` string, required
  - `same_environment_as_notebook_id` string, nullable
  - `same_kernel_as_notebook_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-22** `397ad3a1d858`: 2 info
  - added the new optional request property `same_environment_as_notebook_id`
  - added the new optional request property `same_kernel_as_notebook_id`
- **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

[Operation history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/v1/store/chat-sessions/:chat_session_id/attach-notebook/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/2e1425e0e054?raw)
