[Deprecated]: Update rules in bulk
put
/ec-rule-designer-svc/rest/v3.0/rule/studies/{studyId}/{mode}/bulkupdate
Deprecated: Use latest version instead. Updates rules in bulk.
Request
Path Parameters
-
mode(required): string
Study Mode
-
studyId(required): string(uuid)
Study Id
Supported Media Types
- application/json
Nested Schema : rules
Type:
Show Source
array-
Array of:
object UpdateRuleDTOV3
Title:
UpdateRuleDTOV3Information for Updating rule
Nested Schema : UpdateRuleDTOV3
Type:
objectTitle:
UpdateRuleDTOV3Information for Updating rule
Show Source
-
actions: array
actions
-
aysnc: number
Rule Exec TypeExample:
1 -
isLibrary: boolean
Determines if rules belongs to libraryExample:
true -
operands: array
operands
-
ruleDeleted: number
Rule enabled flag (0:Not deleted, 1:deletedExample:
0 -
ruleDescription: string
Rule descriptionExample:
some information -
ruleEnabled: number
Rule enabled flag (0:Not enabled, 1:enabledExample:
1 -
ruleExpression: string
User friendly rule expressionExample:
AgeInYears(SMARTITEM_DOB, visitDate) -
ruleId: string
(uuid)
Unique ID of rule
-
ruleJSExpression: string
For internal use onlyExample:
For internal use only -
ruleName: string
Rule nameExample:
rule name -
ruleOriginalType: string
Maximum Length:
32Type of ruleExample:UI -
ruleRefName: string
Unique name of ruleExample:
rule_Smart_Age -
ruleState: string
Rule stateExample:
draft -
ruleValidationMessage: string
Rule Validation MessageExample:
validation message -
ruleValidationStatus: string
Rule Validation StatusExample:
validation status -
ruleVersionNumber: number
Rule Version NumberExample:
100 -
studyVersion: string
Current study versionExample:
1.0.0.1
Nested Schema : actions
Type:
Show Source
array-
Array of:
object RuleActionDTO
Title:
RuleActionDTOInformation about action for rule
Nested Schema : operands
Type:
Show Source
array-
Array of:
object RuleOperandDTO
Title:
RuleOperandDTOInformation about operands for rule
Nested Schema : RuleActionDTO
Type:
objectTitle:
RuleActionDTOInformation about action for rule
Show Source
-
eventId: string
(uuid)
Unique ID of event
-
eventRefName: string
Visit refNameExample:
visit -
formId: string
(uuid)
Unique ID of form
-
formRefName: string
form refNameExample:
form -
itemId: string
(uuid)
Unique ID of item
-
itemRefName: string
item refNameExample:
item -
ruleActionDescription: string
Action descriptionExample:
calculated value -
ruleActionOrder: number
The order of performing this action after rule execution (0, 1, 2, ...)Example:
0 -
ruleActionParams: string
Action paramsExample:
calculated value -
ruleActionTypeName: string
Name of the action type: calculated values, auto query, generic calculationsExample:
calculated values
Nested Schema : RuleOperandDTO
Type:
objectTitle:
RuleOperandDTOInformation about operands for rule
Show Source
-
dataType: string
Data type of the operand: Date, Number, Boolean, Text, DropdownExample:
Date -
eventId: string
(uuid)
Unique ID of event
-
eventInstanceNumber: number
Sequence number (0, 1, 2, ...) of repeating eventExample:
0 -
eventRefName: string
Visit refNameExample:
visit -
formId: string
(uuid)
Unique ID of form
-
formRefName: string
form refNameExample:
form -
itemId: string
(uuid)
Unique ID of item
-
itemRefName: string
item refNameExample:
item -
operandName(required): string
Name of operand corresponding to the rule expressionExample:
visitDate -
propertyName: string
Name of study object propertyExample:
visitStartDate -
propertyType: string
Type of study object propertyExample:
visit
Response
Supported Media Types
- application/json
200 Response
Bulk rule update was successful.
Root Schema : RDSRestUnifiedResponseDTO
Type:
objectError details from Rule Designer APIs for bulk operations
Show Source
-
error: object
RDSRestErrorDataDTO
Read Only:
trueError details from Rule Designer APIs -
httpErrorCode: integer
(int32)
Read Only:
trueHttp Error Code -
httpErrorMessage: string
Read Only:
trueHttp Error Message -
jobId: string
(uuid)
Read Only:
trueJob Id -
jobStatus: string
Read Only:
trueJob Status -
result: object
RDSRestResponseDTO
Read Only:
trueResponse from Rule Designer APIs -
Rule Validation Message: string
Read Only:
trueRule Validation Message -
Rule Validation Status: boolean
Read Only:
trueRule Validation State -
ruleId: string
(uuid)
Read Only:
trueRule Id -
ruleName: string
Read Only:
trueRule Name
Nested Schema : RDSRestErrorDataDTO
Type:
objectRead Only:
trueError details from Rule Designer APIs
Show Source
-
details: object
details
Read Only:
trueError Details -
errorCode: string
Read Only:
trueError Code -
errorMessage: string
Read Only:
trueError Message -
result: string
Read Only:
trueResult -
status: string
Read Only:
trueStatus
Nested Schema : RDSRestResponseDTO
Type:
objectRead Only:
trueResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueResult Object -
status: string
Read Only:
trueAllowed Values:[ "success, failed" ]Status
Nested Schema : details
Type:
objectRead Only:
trueError Details
Nested Schema : result
Type:
objectRead Only:
trueResult Object
400 Response
Incorrect payload.
Root Schema : RDSRestUnifiedResponseDTO
Type:
objectError details from Rule Designer APIs for bulk operations
Show Source
-
error: object
RDSRestErrorDataDTO
Read Only:
trueError details from Rule Designer APIs -
httpErrorCode: integer
(int32)
Read Only:
trueHttp Error Code -
httpErrorMessage: string
Read Only:
trueHttp Error Message -
jobId: string
(uuid)
Read Only:
trueJob Id -
jobStatus: string
Read Only:
trueJob Status -
result: object
RDSRestResponseDTO
Read Only:
trueResponse from Rule Designer APIs -
Rule Validation Message: string
Read Only:
trueRule Validation Message -
Rule Validation Status: boolean
Read Only:
trueRule Validation State -
ruleId: string
(uuid)
Read Only:
trueRule Id -
ruleName: string
Read Only:
trueRule Name
Nested Schema : RDSRestErrorDataDTO
Type:
objectRead Only:
trueError details from Rule Designer APIs
Show Source
-
details: object
details
Read Only:
trueError Details -
errorCode: string
Read Only:
trueError Code -
errorMessage: string
Read Only:
trueError Message -
result: string
Read Only:
trueResult -
status: string
Read Only:
trueStatus
Nested Schema : RDSRestResponseDTO
Type:
objectRead Only:
trueResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueResult Object -
status: string
Read Only:
trueAllowed Values:[ "success, failed" ]Status
Nested Schema : details
Type:
objectRead Only:
trueError Details
Nested Schema : result
Type:
objectRead Only:
trueResult Object
500 Response
An internal error occured.
Root Schema : RDSRestUnifiedResponseDTO
Type:
objectError details from Rule Designer APIs for bulk operations
Show Source
-
error: object
RDSRestErrorDataDTO
Read Only:
trueError details from Rule Designer APIs -
httpErrorCode: integer
(int32)
Read Only:
trueHttp Error Code -
httpErrorMessage: string
Read Only:
trueHttp Error Message -
jobId: string
(uuid)
Read Only:
trueJob Id -
jobStatus: string
Read Only:
trueJob Status -
result: object
RDSRestResponseDTO
Read Only:
trueResponse from Rule Designer APIs -
Rule Validation Message: string
Read Only:
trueRule Validation Message -
Rule Validation Status: boolean
Read Only:
trueRule Validation State -
ruleId: string
(uuid)
Read Only:
trueRule Id -
ruleName: string
Read Only:
trueRule Name
Nested Schema : RDSRestErrorDataDTO
Type:
objectRead Only:
trueError details from Rule Designer APIs
Show Source
-
details: object
details
Read Only:
trueError Details -
errorCode: string
Read Only:
trueError Code -
errorMessage: string
Read Only:
trueError Message -
result: string
Read Only:
trueResult -
status: string
Read Only:
trueStatus
Nested Schema : RDSRestResponseDTO
Type:
objectRead Only:
trueResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueResult Object -
status: string
Read Only:
trueAllowed Values:[ "success, failed" ]Status
Nested Schema : details
Type:
objectRead Only:
trueError Details
Nested Schema : result
Type:
objectRead Only:
trueResult Object