---
title: "Generate Real Cases"
method: POST
path: "/api/asclepius/ingestion/cases/{ingest_case_id}/generate"
tags: ["asclepius"]
---

# Generate Real Cases

`POST /api/asclepius/ingestion/cases/{ingest_case_id}/generate`

## Request

- Base URL: `https://app.archangelhealth.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.archangelhealth.ai/api/asclepius/ingestion/cases/{ingest_case_id}/generate`
- Auth: none declared

## Path parameters

- `ingest_case_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- GenerateRealCasesRequest: Build V4 tasks from ONE ingested real chart (Real-Case Generation PRD §5). ``dry_run`` is not optional in spirit and defaults to True here: an admin generating seven cases from a chart must be able to read every proposed question, index event, tag and difficulty band BEFORE any of it reaches a physician. Generating a wrong question at scale is how you burn physician goodwill, and the plan is cheap — the dry run makes no model call at all unless ``derive_questions`` asks for one.
  - `dry_run` boolean
  - `background` boolean
  - `max_cases` integer, nullable
  - `min_gap_days` integer
  - `encounter_indices` integer[], nullable
  - `specialty` string, nullable
  - `max_labels` integer
  - `grounding_mode` string, nullable
  - `independent_mode` string, nullable
  - `open_to_all_specialties` boolean
  - `derive_questions` boolean
  - `trajectory` boolean
  - `include_interval_points` boolean
  - `apply_density_gate` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform.md) - [All operations](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/revisions/3514f4e119da?raw)
