---
title: "POST /generate-cohort-definition"
method: POST
path: "/generate-cohort-definition"
---

# POST /generate-cohort-definition

`POST /generate-cohort-definition`

Generates the cohort definition from mriquery

## Request body

- object
  - `datasetId` string, required — Id of dataset
  - `mriquery` string, required — Filtercard information in bookmark form. This is a binary string encoded in base64

## Response `200`

Success

- string

## Other responses

- `default` — Error

---

[API](https://skmtc.net/ohdsi/apis/health-for-clinical-research.md) · [All operations](https://skmtc.net/ohdsi/apis/health-for-clinical-research/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ohdsi/health-for-clinical-research/revisions/e451f31df7de/schema)
