v2.0
post
/ec-rule-designer-svc/rest/v2.0/rule/studies/{studyId}/copyrules
Copies all active rules from the specified source study to the target study. Compared to v1.0, v2.0 records asynchronous job identifiers, validates new UUID conversion helpers, and supports the enhanced Audit payload returned by the designer service. This benefits users by providing deterministic tracking for cross-study copy operations.
Request
Path Parameters
-
studyId(required): string(uuid)
Unique study identifier supplied as a UUID. Accepts either a compact 32-character hexadecimal value or a hyphenated 36-character UUID.Example:
36753A48BBA048CB98A5F3278146118D
Supported Media Types
- application/json
Root Schema : schema
Type:
objectVersion 3 study mapping definition used for rule copy operations.
Show Source
-
forms: array
forms
Form mappings used during the version 3 copy.
-
fromIsLibrary: boolean
Allowed Values:
[ true, false ]Indicates whether the source study is a library study.Example:false -
fromStudyId(required): string
(uuid)
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Source study identifier expressed as a 32-character uppercase hexadecimal UUID without separators. -
fromStudyVersion: string
Minimum Length:
5Maximum Length:32Pattern:^[0-9]+(\.[0-9]+){1,3}$Source study version identifier.Example:26.2.0.0 -
isToIsLibrary: boolean
-
toIsLibrary: boolean
Allowed Values:
[ true, false ]Indicates whether the target study is a library study.Example:false -
toStudyId(required): string
(uuid)
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Target study identifier expressed as a 32-character uppercase hexadecimal UUID without separators. -
toStudyVersion: string
Minimum Length:
5Maximum Length:32Pattern:^[0-9]+(\.[0-9]+){1,3}$Target study version identifier.Example:27.0.0.1
Nested Schema : forms
Type:
arrayForm mappings used during the version 3 copy.
Show Source
-
Array of:
object FormMapDTO
Defines how a source form maps to a target form during rule copy operations.
Example:
[
{
"fromFormId":"39903D6C042D4D9E89773160488E6D3D",
"fromFormRefName":"SCR_VISIT",
"toFormId":"5A8E2C7D6B4F439AA3BD1E0F8C6A9D34",
"toFormRefName":"SCR_VISIT_V2"
}
]Nested Schema : FormMapDTO
Type:
objectDefines how a source form maps to a target form during rule copy operations.
Show Source
-
fromFormId(required): string
(uuid)
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Source form identifier expressed as a 32-character uppercase hexadecimal UUID without separators. -
fromFormRefName(required): string
Minimum Length:
3Maximum Length:64Pattern:^[A-Z0-9_]+$Reference name of the source form. Use uppercase letters, numbers, and underscores.Example:SCR_VISIT -
items: array
items
Item mappings for operands and targets associated with the form.
-
toFormId(required): string
(uuid)
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Target form identifier expressed as a 32-character uppercase hexadecimal UUID without separators. -
toFormRefName(required): string
Minimum Length:
3Maximum Length:64Pattern:^[A-Z0-9_]+$Reference name of the target form. Use uppercase letters, numbers, and underscores.Example:SCR_VISIT_V2
Example:
{
"fromFormId":"39903D6C042D4D9E89773160488E6D3D",
"toFormId":"5A8E2C7D6B4F439AA3BD1E0F8C6A9D34"
}Nested Schema : items
Type:
arrayItem mappings for operands and targets associated with the form.
Show Source
-
Array of:
object ItemMapDTO
Describes how a source item maps to a target item when copying rules.
Example:
[
{
"fromItemId":"90C7669C40BF4371B71E8EB26851B8AD",
"fromItemRefName":"VISIT_DATE",
"toItemId":"1C9E4A6B8D2F43E7A1B0C5D6F8A9E321",
"toItemRefName":"VISIT_DATE_V2"
}
]Nested Schema : ItemMapDTO
Type:
objectDescribes how a source item maps to a target item when copying rules.
Show Source
-
fromItemId(required): string
(uuid)
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Source item identifier expressed as a 32-character uppercase hexadecimal UUID without separators. -
fromItemRefName(required): string
Minimum Length:
3Maximum Length:128Pattern:^[A-Z0-9_]+$Source item reference name. Use uppercase letters, numbers, and underscores.Example:VISIT_DATE -
toItemId(required): string
(uuid)
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Target item identifier expressed as a 32-character uppercase hexadecimal UUID without separators. -
toItemRefName(required): string
Minimum Length:
3Maximum Length:128Pattern:^[A-Z0-9_]+$Target item reference name. Use uppercase letters, numbers, and underscores.Example:VISIT_DATE_V2
Example:
{
"fromItemId":"90C7669C40BF4371B71E8EB26851B8AD",
"toItemId":"1C9E4A6B8D2F43E7A1B0C5D6F8A9E321"
}Examples
Back to Top
Response
Supported Media Types
- application/json
202 Response
Success.
Root Schema : RDSRestUnifiedResponseDTO
Type:
objectUnified response entry returned when bulk operations process multiple rules.
Show Source
-
error: object
RDSRestErrorDataDTO
Standard error structure returned by Rule Designer APIs.
-
httpErrorCode: integer
(int32)
Minimum Value:
100Maximum Value:599HTTP status code representing the operation result for this rule.Example:200 -
httpErrorMessage: string
Minimum Length:
2Maximum Length:64Status text associated with the HTTP code.Example:Success -
jobId: string
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Identifier of the asynchronous job triggered by the bulk action. Represented as a 32 character uppercase hexadecimal string without separators.Example:123E4567E89B12D3A456426655440001 -
jobStatus: string
Minimum Length:
4Maximum Length:16Allowed Values:[ "Success", "Failed", "Error", "InProgress", "Queued" ]Execution state of the job for this rule. `Success` indicates completion, `Failed` signals a validation problem, `Error` represents an unexpected exception, `InProgress` denotes active processing, and `Queued` means the job awaits execution.Example:Success -
result: object
RDSRestResponseDTO
Response from Rule Designer APIs
-
ruleId: string
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Identifier of the rule that was processed. The value is provided as a 32 character uppercase hexadecimal string without separators.Example:8E2253D8E53A4A46BAE3E4952CBE9E5A -
ruleName: string
Minimum Length:
3Maximum Length:256Display name of the rule.Example:Out of Range Visit Date -
ruleValidationMessage: string
Minimum Length:
1Maximum Length:512Validation outcome message generated while processing the rule.Example:Rule updated successfully. -
ruleValidationStatus: boolean
Allowed Values:
[ true, false ]`true` indicates that validation succeeded for the rule, while `false` captures warnings or errors.Example:true
Nested Schema : RDSRestErrorDataDTO
Type:
objectStandard error structure returned by Rule Designer APIs.
Show Source
-
details: object
details
Read Only:
trueOptional diagnostic information when available. -
errorCode: string
Read Only:
trueMinimum Length:3Maximum Length:64Application specific error identifier.Example:RuleSvc-030 -
errorMessage: string
Read Only:
trueMinimum Length:10Maximum Length:512Human-readable summary explaining the error.Example:Error encountered during rule execution. Contact your system administrator. -
result: string
Read Only:
trueMinimum Length:4Maximum Length:4Successful payload content when available; remains null for error responses.Example:null -
status: string
Read Only:
trueMinimum Length:6Maximum Length:6Allowed Values:[ "failed" ]Overall outcome indicator. `failed` means the request could not be fulfilled.Example:failed
Example:
{
"status":"failed",
"result":null,
"errorCode":"RuleSvc-030",
"errorMessage":"Error encountered during rule execution.",
"details":null
}Nested Schema : RDSRestResponseDTO
Type:
objectResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueMaximum Number of Properties:2000Result payload when the request succeeds. Structure depends on the endpoint. -
status: string
Read Only:
trueMinimum Length:6Maximum Length:7Allowed Values:[ "success", "failed" ]Overall outcome for the call. Allowed values: success, failed.Example:success
Example:
{
"status":"success",
"result":{
"message":"Rule updated successfully."
}
}Nested Schema : details
Type:
objectRead Only:
trueOptional diagnostic information when available.
Example:
Validation failed for ruleId 8E2253D8E53A4A46BAE3E4952CBE9E5A.Nested Schema : result
Type:
objectRead Only:
trueMaximum Number of Properties:
2000Result payload when the request succeeds. Structure depends on the endpoint.
Example:
{
"rules":[
]
}Examples
400 Response
Returned when the request payload is missing required fields, supplies invalid identifiers, or otherwise fails validation.
Root Schema : RDSRestUnifiedResponseDTO
Type:
objectUnified response entry returned when bulk operations process multiple rules.
Show Source
-
error: object
RDSRestErrorDataDTO
Standard error structure returned by Rule Designer APIs.
-
httpErrorCode: integer
(int32)
Minimum Value:
100Maximum Value:599HTTP status code representing the operation result for this rule.Example:200 -
httpErrorMessage: string
Minimum Length:
2Maximum Length:64Status text associated with the HTTP code.Example:Success -
jobId: string
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Identifier of the asynchronous job triggered by the bulk action. Represented as a 32 character uppercase hexadecimal string without separators.Example:123E4567E89B12D3A456426655440001 -
jobStatus: string
Minimum Length:
4Maximum Length:16Allowed Values:[ "Success", "Failed", "Error", "InProgress", "Queued" ]Execution state of the job for this rule. `Success` indicates completion, `Failed` signals a validation problem, `Error` represents an unexpected exception, `InProgress` denotes active processing, and `Queued` means the job awaits execution.Example:Success -
result: object
RDSRestResponseDTO
Response from Rule Designer APIs
-
ruleId: string
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Identifier of the rule that was processed. The value is provided as a 32 character uppercase hexadecimal string without separators.Example:8E2253D8E53A4A46BAE3E4952CBE9E5A -
ruleName: string
Minimum Length:
3Maximum Length:256Display name of the rule.Example:Out of Range Visit Date -
ruleValidationMessage: string
Minimum Length:
1Maximum Length:512Validation outcome message generated while processing the rule.Example:Rule updated successfully. -
ruleValidationStatus: boolean
Allowed Values:
[ true, false ]`true` indicates that validation succeeded for the rule, while `false` captures warnings or errors.Example:true
Nested Schema : RDSRestErrorDataDTO
Type:
objectStandard error structure returned by Rule Designer APIs.
Show Source
-
details: object
details
Read Only:
trueOptional diagnostic information when available. -
errorCode: string
Read Only:
trueMinimum Length:3Maximum Length:64Application specific error identifier.Example:RuleSvc-030 -
errorMessage: string
Read Only:
trueMinimum Length:10Maximum Length:512Human-readable summary explaining the error.Example:Error encountered during rule execution. Contact your system administrator. -
result: string
Read Only:
trueMinimum Length:4Maximum Length:4Successful payload content when available; remains null for error responses.Example:null -
status: string
Read Only:
trueMinimum Length:6Maximum Length:6Allowed Values:[ "failed" ]Overall outcome indicator. `failed` means the request could not be fulfilled.Example:failed
Example:
{
"status":"failed",
"result":null,
"errorCode":"RuleSvc-030",
"errorMessage":"Error encountered during rule execution.",
"details":null
}Nested Schema : RDSRestResponseDTO
Type:
objectResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueMaximum Number of Properties:2000Result payload when the request succeeds. Structure depends on the endpoint. -
status: string
Read Only:
trueMinimum Length:6Maximum Length:7Allowed Values:[ "success", "failed" ]Overall outcome for the call. Allowed values: success, failed.Example:success
Example:
{
"status":"success",
"result":{
"message":"Rule updated successfully."
}
}Nested Schema : details
Type:
objectRead Only:
trueOptional diagnostic information when available.
Example:
Validation failed for ruleId 8E2253D8E53A4A46BAE3E4952CBE9E5A.Nested Schema : result
Type:
objectRead Only:
trueMaximum Number of Properties:
2000Result payload when the request succeeds. Structure depends on the endpoint.
Example:
{
"rules":[
]
}Examples
500 Response
Returned when the service encounters an unexpected server-side error while processing the request.
Root Schema : RDSRestUnifiedResponseDTO
Type:
objectUnified response entry returned when bulk operations process multiple rules.
Show Source
-
error: object
RDSRestErrorDataDTO
Standard error structure returned by Rule Designer APIs.
-
httpErrorCode: integer
(int32)
Minimum Value:
100Maximum Value:599HTTP status code representing the operation result for this rule.Example:200 -
httpErrorMessage: string
Minimum Length:
2Maximum Length:64Status text associated with the HTTP code.Example:Success -
jobId: string
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Identifier of the asynchronous job triggered by the bulk action. Represented as a 32 character uppercase hexadecimal string without separators.Example:123E4567E89B12D3A456426655440001 -
jobStatus: string
Minimum Length:
4Maximum Length:16Allowed Values:[ "Success", "Failed", "Error", "InProgress", "Queued" ]Execution state of the job for this rule. `Success` indicates completion, `Failed` signals a validation problem, `Error` represents an unexpected exception, `InProgress` denotes active processing, and `Queued` means the job awaits execution.Example:Success -
result: object
RDSRestResponseDTO
Response from Rule Designer APIs
-
ruleId: string
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Identifier of the rule that was processed. The value is provided as a 32 character uppercase hexadecimal string without separators.Example:8E2253D8E53A4A46BAE3E4952CBE9E5A -
ruleName: string
Minimum Length:
3Maximum Length:256Display name of the rule.Example:Out of Range Visit Date -
ruleValidationMessage: string
Minimum Length:
1Maximum Length:512Validation outcome message generated while processing the rule.Example:Rule updated successfully. -
ruleValidationStatus: boolean
Allowed Values:
[ true, false ]`true` indicates that validation succeeded for the rule, while `false` captures warnings or errors.Example:true
Nested Schema : RDSRestErrorDataDTO
Type:
objectStandard error structure returned by Rule Designer APIs.
Show Source
-
details: object
details
Read Only:
trueOptional diagnostic information when available. -
errorCode: string
Read Only:
trueMinimum Length:3Maximum Length:64Application specific error identifier.Example:RuleSvc-030 -
errorMessage: string
Read Only:
trueMinimum Length:10Maximum Length:512Human-readable summary explaining the error.Example:Error encountered during rule execution. Contact your system administrator. -
result: string
Read Only:
trueMinimum Length:4Maximum Length:4Successful payload content when available; remains null for error responses.Example:null -
status: string
Read Only:
trueMinimum Length:6Maximum Length:6Allowed Values:[ "failed" ]Overall outcome indicator. `failed` means the request could not be fulfilled.Example:failed
Example:
{
"status":"failed",
"result":null,
"errorCode":"RuleSvc-030",
"errorMessage":"Error encountered during rule execution.",
"details":null
}Nested Schema : RDSRestResponseDTO
Type:
objectResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueMaximum Number of Properties:2000Result payload when the request succeeds. Structure depends on the endpoint. -
status: string
Read Only:
trueMinimum Length:6Maximum Length:7Allowed Values:[ "success", "failed" ]Overall outcome for the call. Allowed values: success, failed.Example:success
Example:
{
"status":"success",
"result":{
"message":"Rule updated successfully."
}
}Nested Schema : details
Type:
objectRead Only:
trueOptional diagnostic information when available.
Example:
Validation failed for ruleId 8E2253D8E53A4A46BAE3E4952CBE9E5A.Nested Schema : result
Type:
objectRead Only:
trueMaximum Number of Properties:
2000Result payload when the request succeeds. Structure depends on the endpoint.
Example:
{
"rules":[
]
}Examples