Skip to main content
POST
Create Cohort

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json
name
string
required
Maximum string length: 255
senderId
string
required
description
string | null
filterCriteria
CohortFilters · object

Reusable cohort filter fields (no pagination/sort/transport).

Field list mirrors PatientFetchParams in decoda/schemas/patient.py; keep in sync or explicitly diverge. The two schemas are intentionally decoupled so cohort and patient-table can evolve independently.

Response

Successful Response

id
string
required
name
string
required
filterCriteria
Filtercriteria · object
required
createdById
string
required
createdDate
string<date-time>
required
description
string | null