---
title: "Create investigation notebook for case"
method: POST
path: "/api/v2/cases/{case_id}/relationships/notebook"
tags: ["Case Management"]
---

# Create investigation notebook for case

`POST /api/v2/cases/{case_id}/relationships/notebook`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cases/{case_id}/relationships/notebook`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `cases_write`

Create a new investigation notebook and link it to a case

## Path parameters

- `case_id` string, required

## Request body

- NotebookCreateRequest: Notebook creation request
  - `data` NotebookCreateData, required: Notebook creation data
    - `type` 'notebook', required: Notebook resource type

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
