V1.0
post
/ec-dc-svc/rest/v1.0/studies/{studyId}/{mode}/enrollmentsettings
Creates new enrollment settings for the specified study and mode. Validates the supplied configuration persists the settings, and returns the created enrollment setting record.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.Example:
test -
studyId(required): string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE
Supported Media Types
- application/json
Root Schema : schema
Type:
objectDTO representing enrollment setting details, including associated group criteria.
Show Source
-
count: integer
(int32)
Count associated with this settingExample:
1 -
description: string
Minimum Length:
0Maximum Length:2048Description for this enrollment setting.Example:This setting applies to test group. -
enableSetting: boolean
Whether this enrollment setting is enabled.Example:
true -
groupCriteria: object
groupCriteria
DTO describing individual cohort/criteria group for enrollment settings.
-
groupTitle: string
Minimum Length:
0Maximum Length:255Title or label for the group.Example:Test Group -
id: string
Unique Identfier (UUID, 32-character uppercase hexadecimal string) for this enrollment setting.Example:
AA11BB22CC33DD44EE55FF6677889900 -
notificationLimit: integer
(int32)
Minimum Value:
0Maximum Value:100Notification threshold for subject count.Example:60 -
objectVersionNumber: integer
(int32)
Object version numberExample:
2 -
settingType: string
Type of setting. It can be Scr_limit , Rand_limitExample:
Rand_limit -
subjectLimit: integer
(int32)
Minimum Value:
0Maximum number of subjects permitted.Example:100
Nested Schema : groupCriteria
Type:
objectDTO describing individual cohort/criteria group for enrollment settings.
Show Source
-
choiceValue: string
Minimum Length:
0Maximum Length:2048List of choice value objects, if applicable for enumeration-type criteria.Example:[{"value":"1","label":"Yes"}] -
criteriaType: string
Minimum Length:
0Maximum Length:16Type of criteria applied Should match either numeric or choice.Example:choice -
endRange: number
(double)
Upper bound for range-type group criteria.Example:
65 -
formId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
FORM1 -
groupId: string
Unique Identifier (UUID, 32-character uppercase hexadecimal string) for the group this criteria belongs to.Example:
BEEF11223344556677889900AABBCCDD -
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) for this group criteria record.Example:
1234567890AABBCCDDEEFF1122334455 -
itemId: string
Unique Item identifier (UUID, 32-character uppercase hexadecimal string) from the study Designer, associated to a form.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
objectVersionNumber: integer
(int32)
Object version numberExample:
1 -
startRange: number
(double)
Lower bound for range-type group criteria.Example:
18 -
studyVersion: string
Minimum Length:
0Maximum Length:100String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:1.0.0.0 -
title: string
Minimum Length:
0Maximum Length:2048Title or description for the group criteria.Example:Male subjects age 18-65 -
visitId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the visitExample:
1BC29B36F5D64B1B95F4BDBBCEA481BE
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Success: The enrollment setting was created. Returns the created enrollment setting(s).
Root Schema : EnrollmentSetting
Type:
objectRepresents the persisted enrollment setting for a study group.
Show Source
-
comment: string
Minimum Length:
0Maximum Length:2048Comment regarding the last change made to the entity.Example:Imported via migration tool. -
description: string
Brief description of the enrollment setting.Example:
Phase 1 - First cohort group -
enableSetting: boolean
Indicates if the enrollment setting is enabled.Example:
true -
groupTitle: string
Title of the group receiving this setting.Example:
Cohort A -
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) for the enrollment setting.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
notificationLimit: integer
(int32)
Notification threshold for approaching subject limit.Example:
80 -
operationType: string
Minimum Length:
1Maximum Length:16Operation type on the record, can have values CREATED, MODIFIED or REMOVEDExample:REMOVED -
reason: string
Minimum Length:
0Maximum Length:255Reason for the entity creation or latest modification.Example:Initial import. -
subjectLimit: integer
(int32)
Maximum number of subjects allowed in this group.Example:
100 -
versionStart: string
(date-time)
The timestamp marking the beginning of the validity period for this record version within the system.Example:
2023-01-01T09:00:00Z
Examples
400 Response
Bad request.
Root Schema : DcsResponse
Type:
Show Source
object-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
-
status: string
-
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: object
details
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
-
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:
objectNested Schema : details
Type:
objectDetailed 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