V2.0
post
/ec-dc-svc/rest/v2.0/studies/{studyId}/{mode}/subjectsettings
Creates a list of subject settings. This is needed to dynamically create new settings such as region, country limits setting. use V2, it returns with additional value of object version number.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.Example:
test -
studyId(required): string(uuid)
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.Example:
C0A8012B4F8B4475B7A3350CC6C7EA21
Supported Media Types
- application/json
Root Schema : schema
Type:
objectRequest payload containing a list of subject settings to create or update.
Show Source
-
subjectSettings: array
subjectSettings
List of subject setting objects, each including unique identifier, versioning, key, value, and audit details.
Nested Schema : subjectSettings
Type:
arrayList of subject setting objects, each including unique identifier, versioning, key, value, and audit details.
Show Source
-
Array of:
object SubjectSetting
Entity representing a single subject setting. Contains business key, value, version, and audit info. Used in requests and responses.
Nested Schema : SubjectSetting
Type:
objectEntity representing a single subject setting. Contains business key, value, version, and audit info. Used in requests and responses.
Show Source
-
attributeKey(required): string
Key of the subject setting attribute. Possible values:
- sequential_across_study_or_site
- limit_screened_subjects
- withdraw_subject_codebreak
- limit_randomize_subjects
- user_enters_screening_visit_date
- user_edits_screening_visit_date
- user_enters_randomization_visit_date
- user_edits_randomization_visit_date
- user_enters_dispensation_visit_date
- user_edits_dispensation_visit_date
- user_enters_non_dispensation_visit_date
- user_edits_non_dispensation_visit_date
- user_enters_optional_visit_date
- user_edits_optional_visit_date
- user_enters_withdraw_visit_date
- user_edits_withdraw_visit_date
- randomization_visit_date_additional_setting
- dispensation_visit_date_additional_setting
- can_dispensation_visit_be_skipped
- can_non_dispensation_visit_be_skipped
- separate_siteid_and_subjectid_hyphen
- limit_study_status
- limit_site_scr
- limit_site_rand
- limit_site_alerts
- limit_site_status
- limit_country_scr
- limit_country_rand
- limit_country_alerts
- limit_country_status
- padding_for_subject_id
- max_randomize_subject
- subject_alerts
- max_screened_subject
- subject_addition_allowed
- subject_number_selection_allowed
- subject_number_format
- retry_partial_sdv_selection
- notify_unsched_visit_failure_only
- notify_screening_failure_only
- notify_optional_visit_failure_only
- notify_nondisp_visit_failure_only
- notify_randomization_failure_only
- notify_dispensation_failure_only
- notify_subjcomplete_visit_failure_only
- show_visit_window
- notify_first_screened_in_study
- notify_first_screened_at_site
- notify_first_randomized_in_study
- notify_first_randomized_at_site
- allow_withdrawal_before_enrollment
- allow_display_signature_elements
- replace_subject_number_rand_number
- code_data_for_new_and_screen_failed_subjects
- blind_rand_number_enabled
- replace_randomisation_enabled
- replace_randomisation_prefix
- replace_randomisation_max_limit
- allow_rescreening
- number_of_rescreen_allowed
- lock_screen_data_on_failure
- user_enters_rescreening_visit_date
- user_edits_rescreening_visit_date
- notify_rescreening_failure_only
- replace_subject_number_enabled
- assign_subject_number
- allow_screen_fail_before_screened
- limit_country_AF_status
- limit_country_AF_scr
- limit_country_AF_alerts
- limit_country_AF_name
- limit_country_AF_rand
- limit_country_DZ_alerts
- limit_country_DZ_rand
- limit_country_DZ_status
- limit_country_DZ_name
- limit_country_DZ_scr
- minimum_subject_number
- allow_withdrawal_for_screen_failed
- allow_completion_for_screen_failed
- enable_assign_subject_number
Example:assign_subject_number -
attributeValue(required): string
String value assigned to this subject setting attribute.Example:
YES -
comment: string
Minimum Length:
0Maximum Length:2048Comment regarding the last change made to the entity.Example:Imported via migration tool. -
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) for the subject setting.Example:
9C67E72C1F2A4BE997B5C0F7A3C91E45 -
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. -
versionStart: string
(date-time)
The timestamp marking the beginning of the validity period for this record version within the system.Example:
2023-01-01T00:00:00Z
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : schema
Type:
Show Source
array-
Array of:
object SubjectSettingDto
Subject setting data including start version, key/value, and auditing info.
Nested Schema : SubjectSettingDto
Type:
objectSubject setting data including start version, key/value, and auditing info.
Show Source
-
attributeKey(required): string
Key of the subject setting attribute. Possible values:
- sequential_across_study_or_site
- limit_screened_subjects
- withdraw_subject_codebreak
- limit_randomize_subjects
- user_enters_screening_visit_date
- user_edits_screening_visit_date
- user_enters_randomization_visit_date
- user_edits_randomization_visit_date
- user_enters_dispensation_visit_date
- user_edits_dispensation_visit_date
- user_enters_non_dispensation_visit_date
- user_edits_non_dispensation_visit_date
- user_enters_optional_visit_date
- user_edits_optional_visit_date
- user_enters_withdraw_visit_date
- user_edits_withdraw_visit_date
- randomization_visit_date_additional_setting
- dispensation_visit_date_additional_setting
- can_dispensation_visit_be_skipped
- can_non_dispensation_visit_be_skipped
- separate_siteid_and_subjectid_hyphen
- limit_study_status
- limit_site_scr
- limit_site_rand
- limit_site_alerts
- limit_site_status
- limit_country_scr
- limit_country_rand
- limit_country_alerts
- limit_country_status
- padding_for_subject_id
- max_randomize_subject
- subject_alerts
- max_screened_subject
- subject_addition_allowed
- subject_number_selection_allowed
- subject_number_format
- retry_partial_sdv_selection
- notify_unsched_visit_failure_only
- notify_screening_failure_only
- notify_optional_visit_failure_only
- notify_nondisp_visit_failure_only
- notify_randomization_failure_only
- notify_dispensation_failure_only
- notify_subjcomplete_visit_failure_only
- show_visit_window
- notify_first_screened_in_study
- notify_first_screened_at_site
- notify_first_randomized_in_study
- notify_first_randomized_at_site
- allow_withdrawal_before_enrollment
- allow_display_signature_elements
- replace_subject_number_rand_number
- code_data_for_new_and_screen_failed_subjects
- blind_rand_number_enabled
- replace_randomisation_enabled
- replace_randomisation_prefix
- replace_randomisation_max_limit
- allow_rescreening
- number_of_rescreen_allowed
- lock_screen_data_on_failure
- user_enters_rescreening_visit_date
- user_edits_rescreening_visit_date
- notify_rescreening_failure_only
- replace_subject_number_enabled
- assign_subject_number
- allow_screen_fail_before_screened
- limit_country_AF_status
- limit_country_AF_scr
- limit_country_AF_alerts
- limit_country_AF_name
- limit_country_AF_rand
- limit_country_DZ_alerts
- limit_country_DZ_rand
- limit_country_DZ_status
- limit_country_DZ_name
- limit_country_DZ_scr
- minimum_subject_number
- allow_withdrawal_for_screen_failed
- allow_completion_for_screen_failed
- enable_assign_subject_number
Example:assign_subject_number -
attributeValue(required): string
Value of the subject setting attribute.Example:
YES -
comment: string
Minimum Length:
0Maximum Length:2048Comments or additional notes for this operation.Example:Enabled based on protocol -
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) for the subject setting.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
objectVersionNumber: integer
(int32)
Object version numberExample:
1 -
reason: string
Minimum Length:
0Maximum Length:255Reason for this operation or audit action.Example:Initial setup -
versionStart: string
(date-time)
The timestamp marking the beginning of the validity period for this record version within the system.Example:
2023-01-01T00: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