Update rule states in bulk
put
/ec-rule-designer-svc/rest/v1.0/rule/studies/{studyId}/{mode}/from/{fromState}/to/{toState}/bulkstateupdate
Updates rule states in bulk. To change a rule's state from Approved to Publish, use the Publish a collection of rules in Testing mode API.
Request
Path Parameters
-
fromState(required): string
From State
-
mode(required): string
Study Mode
-
studyId(required): string(uuid)
Study Id
-
toState(required): string
To State
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
ruleIds(required): array
ruleIds
list of Rule Unique GUIDs
Nested Schema : ruleIds
Type:
array
list of Rule Unique GUIDs
Show Source
-
Array of:
string(uuid)
list of Rule Unique GUIDs
Example:
[
"938D23FA6B7241CCA41BD627E5DB60DA",
"699EF3745FC545589F186D2198F3C65E"
]
Response
Supported Media Types
- application/json
200 Response
Bulk rule state change was successful.
Root Schema : RDSRestUnifiedResponseDTO
Type:
object
Error details from Rule Designer APIs for bulk operations
Show Source
-
error: object
RDSRestErrorDataDTO
Read Only:
true
Error details from Rule Designer APIs -
httpErrorCode: integer
(int32)
Read Only:
true
Http Error Code -
httpErrorMessage: string
Read Only:
true
Http Error Message -
jobId: string
(uuid)
Read Only:
true
Job Id -
jobStatus: string
Read Only:
true
Job Status -
result: object
RDSRestResponseDTO
Read Only:
true
Response from Rule Designer APIs -
Rule Validation Message: string
Read Only:
true
Rule Validation Message -
Rule Validation Status: boolean
Read Only:
true
Rule Validation State -
ruleId: string
(uuid)
Read Only:
true
Rule Id -
ruleName: string
Read Only:
true
Rule Name
Nested Schema : RDSRestErrorDataDTO
Type:
object
Read Only:
true
Error details from Rule Designer APIs
Show Source
-
details: object
details
Read Only:
true
Error Details -
errorCode: string
Read Only:
true
Error Code -
errorMessage: string
Read Only:
true
Error Message -
result: string
Read Only:
true
Result -
status: string
Read Only:
true
Status
Nested Schema : RDSRestResponseDTO
Type:
object
Read Only:
true
Response from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
true
Result Object -
status: string
Read Only:
true
Allowed Values:[ "success, failed" ]
Status
Nested Schema : details
Type:
object
Read Only:
true
Error Details
Nested Schema : result
Type:
object
Read Only:
true
Result Object
400 Response
Incorrect payload.
Root Schema : RDSRestUnifiedResponseDTO
Type:
object
Error details from Rule Designer APIs for bulk operations
Show Source
-
error: object
RDSRestErrorDataDTO
Read Only:
true
Error details from Rule Designer APIs -
httpErrorCode: integer
(int32)
Read Only:
true
Http Error Code -
httpErrorMessage: string
Read Only:
true
Http Error Message -
jobId: string
(uuid)
Read Only:
true
Job Id -
jobStatus: string
Read Only:
true
Job Status -
result: object
RDSRestResponseDTO
Read Only:
true
Response from Rule Designer APIs -
Rule Validation Message: string
Read Only:
true
Rule Validation Message -
Rule Validation Status: boolean
Read Only:
true
Rule Validation State -
ruleId: string
(uuid)
Read Only:
true
Rule Id -
ruleName: string
Read Only:
true
Rule Name
Nested Schema : RDSRestErrorDataDTO
Type:
object
Read Only:
true
Error details from Rule Designer APIs
Show Source
-
details: object
details
Read Only:
true
Error Details -
errorCode: string
Read Only:
true
Error Code -
errorMessage: string
Read Only:
true
Error Message -
result: string
Read Only:
true
Result -
status: string
Read Only:
true
Status
Nested Schema : RDSRestResponseDTO
Type:
object
Read Only:
true
Response from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
true
Result Object -
status: string
Read Only:
true
Allowed Values:[ "success, failed" ]
Status
Nested Schema : details
Type:
object
Read Only:
true
Error Details
Nested Schema : result
Type:
object
Read Only:
true
Result Object
500 Response
An internal error occured.
Root Schema : RDSRestUnifiedResponseDTO
Type:
object
Error details from Rule Designer APIs for bulk operations
Show Source
-
error: object
RDSRestErrorDataDTO
Read Only:
true
Error details from Rule Designer APIs -
httpErrorCode: integer
(int32)
Read Only:
true
Http Error Code -
httpErrorMessage: string
Read Only:
true
Http Error Message -
jobId: string
(uuid)
Read Only:
true
Job Id -
jobStatus: string
Read Only:
true
Job Status -
result: object
RDSRestResponseDTO
Read Only:
true
Response from Rule Designer APIs -
Rule Validation Message: string
Read Only:
true
Rule Validation Message -
Rule Validation Status: boolean
Read Only:
true
Rule Validation State -
ruleId: string
(uuid)
Read Only:
true
Rule Id -
ruleName: string
Read Only:
true
Rule Name
Nested Schema : RDSRestErrorDataDTO
Type:
object
Read Only:
true
Error details from Rule Designer APIs
Show Source
-
details: object
details
Read Only:
true
Error Details -
errorCode: string
Read Only:
true
Error Code -
errorMessage: string
Read Only:
true
Error Message -
result: string
Read Only:
true
Result -
status: string
Read Only:
true
Status
Nested Schema : RDSRestResponseDTO
Type:
object
Read Only:
true
Response from Rule Designer APIs
Show Source
-
result: object
result
Read Only:
true
Result Object -
status: string
Read Only:
true
Allowed Values:[ "success, failed" ]
Status
Nested Schema : details
Type:
object
Read Only:
true
Error Details
Nested Schema : result
Type:
object
Read Only:
true
Result Object