Get cohort enrollments by study, mode and cohort ID
get
/ec-ors-svc/rest/v1.0/studies/{studyId}/{mode}/cohortenrollments/{cohortid}
Retrieves cohort enrollments by study, mode and cohort ID. Rights: SubjectSettingRightsGet.
Request
Path Parameters
-
cohortid(required): string
ID of the cohort
-
mode(required): string
Mode of the study, accepts: test, active, or training
-
studyId(required): string(uuid)
ID of the study
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : CohortEnrollments
Type:
objectResponse object containing cohort enrollment details.
Show Source
-
cohortId: string
(uuid)
Cohort ID
-
enabled: boolean
Indicates if cohort is enabled.Example:
true -
enrollmentLimitReached: boolean
Indicate if enrollment limit is reached.Example:
true -
notificationLimit: number
(double)
Notification limit value. Once value is reached a notification is sent.Example:
5 -
randomizationLimit: number
(double)
Maximum number of subjects who can be randomized for the study.Example:
5 -
randomizedSubjects: number
(double)
Number of randomized subjectsExample:
5
500 Response
Internal server error
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
version: integer
(int32)
Nested Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: string
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.Example:
User role is missing required permission REPORTING_VIEW. Field: userId -
errorCode: string
Application or business-specific error code representing the error type.Example:
REPT_401 -
errorMessage: string
Human-readable error message describing the failure or issue.Example:
Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type:
objectResult Object