Add Patients to Cohort
Cohort
Add Patients to Cohort
Bulk assign multiple patients to a cohort.
POST
Add Patients to Cohort
For more information, see the guide about Cohorts
Path Params
The ID of the cohort to assign patients to.
Body
You must provide eitherpatientIds or allPatients, but not both.
Array of patient IDs to assign to the cohort. Mutually exclusive with the
allPatients property.Property to confirm you want to assign all patients in your metriport
instance to the cohort. Mutually exclusive with the
patientIds array.Response
Confirmation message indicating the operation was successful.
The cohort details.
Notes
- When assigning specific
patientIdsto a treatment cohort, patients withtreatmentRelationship: falsecannot be added. Use the Treatment Relationship endpoint to update consent before assigning those patients to treatment cohorts. - When using
allPatients: trueon a treatment cohort, patients withtreatmentRelationship: falseare not added. The request still succeeds for all other patients.

