[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 for given request payload
Request
Path Parameters
-
mode(required): string
Study Mode. (Test, Training or Active)Example:
test -
studyId(required): string(uuid)
Study ID.Example:
123e4567-e89b-12d3-a456-426655440000
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:
V1_Visit -
formId: string
(uuid)
Unique ID of form
-
formRefName: string
form refNameExample:
Dermatology -
itemId: string
(uuid)
Unique ID of item
-
itemRefName: string
item refNameExample:
Verbatim -
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
-
(Optional)eventInstanceNumber: number
Sequence number (0, 1, 2, ...) of repeating eventExample:
0 -
dataType: string
Data type of the operand: Date, Number, Boolean, Text, DropdownExample:
Date -
eventId: string
(uuid)
Unique ID of event
-
eventRefName: string
Visit refNameExample:
visit -
formId: string
(uuid)
Unique ID of form
-
formRefName: string
form refNameExample:
V1_FORM -
itemId: string
(uuid)
Unique ID of item
-
itemRefName: string
item refNameExample:
TEXT_04 -
operandName(required): string
Name of operand corresponding to the rule expressionExample:
input -
propertyName: string
Name of study object propertyExample:
visitStartDate -
propertyType: string
Type of study object propertyExample:
visit
Examples
Back to Top
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
Error details from Rule Designer APIs
-
httpErrorCode: integer
(int32)
Http Error CodeExample:
400 -
httpErrorMessage: string
Http Error MessageExample:
Bad Request -
jobId: string
(uuid)
Job Id
-
jobStatus: string
Job StatusExample:
IN_PROGRESS -
result: object
RDSRestResponseDTO
Response from Rule Designer APIs
-
Rule Validation Message: string
Rule Validation MessageExample:
Rule is valid -
Rule Validation Status: boolean
Rule Validation StateExample:
true -
ruleId: string
(uuid)
Rule Id
-
ruleName: string
Rule NameExample:
My Rule
Nested Schema : RDSRestErrorDataDTO
Type:
objectError 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
Example:
{
"errorCode":"RULE_ERROR",
"errorMessage":"Rule execution failed"
}Nested Schema : RDSRestResponseDTO
Type:
objectResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueResult Object. Refer to example response for more details. -
status: string
Read Only:
trueAllowed Values:[ "success, failed" ]Status
Example:
{
"status":"success",
"result":"Rule executed successfully"
}Nested Schema : details
Type:
objectRead Only:
trueError Details
Nested Schema : result
Type:
objectRead Only:
trueResult Object. Refer to example response for more details.
Examples
400 Response
Incorrect payload.
Root Schema : RDSRestUnifiedResponseDTO
Type:
objectError details from Rule Designer APIs for bulk operations
Show Source
-
error: object
RDSRestErrorDataDTO
Error details from Rule Designer APIs
-
httpErrorCode: integer
(int32)
Http Error CodeExample:
400 -
httpErrorMessage: string
Http Error MessageExample:
Bad Request -
jobId: string
(uuid)
Job Id
-
jobStatus: string
Job StatusExample:
IN_PROGRESS -
result: object
RDSRestResponseDTO
Response from Rule Designer APIs
-
Rule Validation Message: string
Rule Validation MessageExample:
Rule is valid -
Rule Validation Status: boolean
Rule Validation StateExample:
true -
ruleId: string
(uuid)
Rule Id
-
ruleName: string
Rule NameExample:
My Rule
Nested Schema : RDSRestErrorDataDTO
Type:
objectError 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
Example:
{
"errorCode":"RULE_ERROR",
"errorMessage":"Rule execution failed"
}Nested Schema : RDSRestResponseDTO
Type:
objectResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueResult Object. Refer to example response for more details. -
status: string
Read Only:
trueAllowed Values:[ "success, failed" ]Status
Example:
{
"status":"success",
"result":"Rule executed successfully"
}Nested Schema : details
Type:
objectRead Only:
trueError Details
Nested Schema : result
Type:
objectRead Only:
trueResult Object. Refer to example response for more details.
500 Response
An internal error occurred.
Root Schema : RDSRestUnifiedResponseDTO
Type:
objectError details from Rule Designer APIs for bulk operations
Show Source
-
error: object
RDSRestErrorDataDTO
Error details from Rule Designer APIs
-
httpErrorCode: integer
(int32)
Http Error CodeExample:
400 -
httpErrorMessage: string
Http Error MessageExample:
Bad Request -
jobId: string
(uuid)
Job Id
-
jobStatus: string
Job StatusExample:
IN_PROGRESS -
result: object
RDSRestResponseDTO
Response from Rule Designer APIs
-
Rule Validation Message: string
Rule Validation MessageExample:
Rule is valid -
Rule Validation Status: boolean
Rule Validation StateExample:
true -
ruleId: string
(uuid)
Rule Id
-
ruleName: string
Rule NameExample:
My Rule
Nested Schema : RDSRestErrorDataDTO
Type:
objectError 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
Example:
{
"errorCode":"RULE_ERROR",
"errorMessage":"Rule execution failed"
}Nested Schema : RDSRestResponseDTO
Type:
objectResponse from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
trueResult Object. Refer to example response for more details. -
status: string
Read Only:
trueAllowed Values:[ "success, failed" ]Status
Example:
{
"status":"success",
"result":"Rule executed successfully"
}Nested Schema : details
Type:
objectRead Only:
trueError Details
Nested Schema : result
Type:
objectRead Only:
trueResult Object. Refer to example response for more details.