---
title: "Create Case"
method: POST
path: "/mr/api/v1/cases"
tags: ["Cases"]
---

# Create Case

`POST /mr/api/v1/cases`

This endpoint creates a new medical case.

## Headers

- `X-Pt-Id` string, required

## Request body

- object
  - `id` string, required — Unique identifier for the case.
  - `display_name` string, required — Human-readable name for the case
  - `hi_type` 'OPConsultation' | 'Prescription' | 'DischargeSummary' | 'DiagnosticReport' | 'ImmunizationRecord' | 'HealthDocumentRecord' | 'WellnessRecord' — Type of case
  - `occurred_at` integer, required — Timestamp when the event occurred (Unix timestamp)
  - `type` string — Type of the case
  - `partner_meta` object — metadata attached to the case.

## Response `200`

Case created successfully

- object
  - `id` string — Unique identifier for the newly created case

## Other responses

- `400` — Bad request – missing or invalid fields in the request body
- `401` — Unauthorized – invalid or missing token
- `409` — Case already Exist
- `500` — Internal server error – unexpected issue while processing

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/revisions/9ea23456f722/schema)
