v1.0
put
/ec-rule-designer-svc/rest/v1.0/rulemgt/studies/{studyId}/{mode}/{publishRun}
Updates rules in a study to execute, when published, for either all or future data only. Compared to the v0.9 endpoint, v1.0 centralizes the publish scope in the path parameter and validates rule identifiers before applying changes.
Request
Path Parameters
-
mode(required): string
Study mode determines the data segment being managed. Allowed values: design (draft configuration workspace), test (UAT sandbox), training (sandbox for practice data), production (live subject data).Example:
test -
publishRun(required): string
`AllData` republishes rules for existing and future subject data, while `FutureData` restricts the change to newly collected data.Example:
AllData -
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:
objectWrapper containing the rule identifiers targeted by a bulk operation.
Show Source
-
ruleIds(required): array
ruleIds
List of rule identifiers expressed as 32 character uppercase hexadecimal strings without separators.
Nested Schema : ruleIds
Type:
arrayList of rule identifiers expressed as 32 character uppercase hexadecimal strings without separators.
Show Source
-
Array of:
string
Minimum Length:
32Maximum Length:32Pattern:^[0-9A-F]{32}$Rule identifier expressed as a 32 character uppercase hexadecimal string without separators.Example:938D23FA6B7241CCA41BD627E5DB60DA
Example:
[
"938D23FA6B7241CCA41BD627E5DB60DA",
"699EF3745FC545589F186D2198F3C65E"
]Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Rule enable/disable was successful.
Root Schema : schema
Type:
Show Source
array-
Array of:
object BulkRulePublishRunResponseItemDoc
Entry describing the outcome of a publish run update for a specific rule.
Nested Schema : BulkRulePublishRunResponseItemDoc
Type:
objectEntry describing the outcome of a publish run update for a specific rule.
Show Source
-
error: object
BulkRuleMgmtErrorDoc
Error payload returned when a request cannot be processed.
-
httpErrorCode: integer
(int32)
Minimum Value:
100Maximum Value:599HTTP status code that would have been returned for this entry if processed individually.Example:200 -
httpErrorMessage: string
Minimum Length:
2Maximum Length:64HTTP status text associated with the error code.Example:Success -
jobStatus: string
Minimum Length:
5Maximum Length:10Allowed Values:[ "Success", "Failed", "Error", "InProgress", "Queued" ]Processing outcome for the rule. `Success` means the publish run was updated, `Failed` signals a validation problem, `Error` reports an unexpected server issue, `InProgress` denotes an active update, and `Queued` indicates that processing has not started yet.Example:Success -
result: object
BulkRulePublishRunResultDoc
Result object returned when a publish run update succeeds.
-
ruleId: string
Minimum Length:
32Maximum Length:36Unique identifier of the rule.Example:8E2253D8E53A4A46BAE3E4952CBE9E5A -
ruleName: string
Minimum Length:
3Maximum Length:256Name of the rule.Example:Out of Range Visit Date -
ruleValidationMessage: string
Minimum Length:
5Maximum Length:512Validation message resulting from the publish run update.Example:Rule updated successfully. -
ruleValidationStatus: boolean
Allowed Values:
[ true, false ]Indicates whether the rule remains valid after processing. `true` means validation succeeded for the rule entry, while `false` records warnings or errors.Example:true
Example:
{
"ruleId":"8E2253D8E53A4A46BAE3E4952CBE9E5A",
"ruleName":"Out of Range Visit Date",
"jobStatus":"Success",
"ruleValidationMessage":"Rule updated successfully.",
"ruleValidationStatus":true,
"httpErrorCode":200,
"httpErrorMessage":"Success",
"result":{
"status":"success",
"result":"Publish run updated to AllData"
},
"error":null
}Nested Schema : BulkRuleMgmtErrorDoc
Type:
objectError payload returned when a request cannot be processed.
Show Source
-
details: string
Minimum Length:
5Maximum Length:512Optional contextual details that help the caller remediate the failure.Example:ruleIds must contain at least one value. -
errorCode: string
Minimum Length:
5Maximum Length:32Application level error code.Example:JSON-004 -
errorMessage: string
Minimum Length:
10Maximum Length:512Human-readable explanation of the error.Example:Invalid UUID list. One or more elements are invalid. Must contain at least one element. -
result: string
Minimum Length:
5Maximum Length:256Successful result content when available; typically null for errors.Example:No result returned because the request failed validation. -
status: string
Minimum Length:
6Maximum Length:6Allowed Values:[ "failed" ]Overall status of the call. `failed` indicates the request could not be completed, `success` is never returned for this payload.Example:failed
Example:
{
"status":"failed",
"result":null,
"errorCode":"JSON-004",
"errorMessage":"Invalid UUID list. One or more elements are invalid. Must contain at least one element.",
"details":"ruleIds must contain at least one value."
}Nested Schema : BulkRulePublishRunResultDoc
Type:
objectResult object returned when a publish run update succeeds.
Show Source
-
result: string
Minimum Length:
5Maximum Length:256Additional message describing the change that was applied.Example:Publish run updated to AllData -
status: string
Minimum Length:
3Maximum Length:10Allowed Values:[ "success", "failed", "error" ]Outcome status string. `success` indicates the publish run change applied, `failed` shows a validation issue, and `error` represents an unexpected exception.Example:success
Example:
{
"status":"success",
"result":"Publish run updated to AllData"
}Examples
400 Response
Returned when the request payload is missing required fields, supplies invalid identifiers, or otherwise fails validation.
Root Schema : schema
Type:
Show Source
array-
Array of:
object BulkRulePublishRunResponseItemDoc
Entry describing the outcome of a publish run update for a specific rule.
Nested Schema : BulkRulePublishRunResponseItemDoc
Type:
objectEntry describing the outcome of a publish run update for a specific rule.
Show Source
-
error: object
BulkRuleMgmtErrorDoc
Error payload returned when a request cannot be processed.
-
httpErrorCode: integer
(int32)
Minimum Value:
100Maximum Value:599HTTP status code that would have been returned for this entry if processed individually.Example:200 -
httpErrorMessage: string
Minimum Length:
2Maximum Length:64HTTP status text associated with the error code.Example:Success -
jobStatus: string
Minimum Length:
5Maximum Length:10Allowed Values:[ "Success", "Failed", "Error", "InProgress", "Queued" ]Processing outcome for the rule. `Success` means the publish run was updated, `Failed` signals a validation problem, `Error` reports an unexpected server issue, `InProgress` denotes an active update, and `Queued` indicates that processing has not started yet.Example:Success -
result: object
BulkRulePublishRunResultDoc
Result object returned when a publish run update succeeds.
-
ruleId: string
Minimum Length:
32Maximum Length:36Unique identifier of the rule.Example:8E2253D8E53A4A46BAE3E4952CBE9E5A -
ruleName: string
Minimum Length:
3Maximum Length:256Name of the rule.Example:Out of Range Visit Date -
ruleValidationMessage: string
Minimum Length:
5Maximum Length:512Validation message resulting from the publish run update.Example:Rule updated successfully. -
ruleValidationStatus: boolean
Allowed Values:
[ true, false ]Indicates whether the rule remains valid after processing. `true` means validation succeeded for the rule entry, while `false` records warnings or errors.Example:true
Example:
{
"ruleId":"8E2253D8E53A4A46BAE3E4952CBE9E5A",
"ruleName":"Out of Range Visit Date",
"jobStatus":"Success",
"ruleValidationMessage":"Rule updated successfully.",
"ruleValidationStatus":true,
"httpErrorCode":200,
"httpErrorMessage":"Success",
"result":{
"status":"success",
"result":"Publish run updated to AllData"
},
"error":null
}Nested Schema : BulkRuleMgmtErrorDoc
Type:
objectError payload returned when a request cannot be processed.
Show Source
-
details: string
Minimum Length:
5Maximum Length:512Optional contextual details that help the caller remediate the failure.Example:ruleIds must contain at least one value. -
errorCode: string
Minimum Length:
5Maximum Length:32Application level error code.Example:JSON-004 -
errorMessage: string
Minimum Length:
10Maximum Length:512Human-readable explanation of the error.Example:Invalid UUID list. One or more elements are invalid. Must contain at least one element. -
result: string
Minimum Length:
5Maximum Length:256Successful result content when available; typically null for errors.Example:No result returned because the request failed validation. -
status: string
Minimum Length:
6Maximum Length:6Allowed Values:[ "failed" ]Overall status of the call. `failed` indicates the request could not be completed, `success` is never returned for this payload.Example:failed
Example:
{
"status":"failed",
"result":null,
"errorCode":"JSON-004",
"errorMessage":"Invalid UUID list. One or more elements are invalid. Must contain at least one element.",
"details":"ruleIds must contain at least one value."
}Nested Schema : BulkRulePublishRunResultDoc
Type:
objectResult object returned when a publish run update succeeds.
Show Source
-
result: string
Minimum Length:
5Maximum Length:256Additional message describing the change that was applied.Example:Publish run updated to AllData -
status: string
Minimum Length:
3Maximum Length:10Allowed Values:[ "success", "failed", "error" ]Outcome status string. `success` indicates the publish run change applied, `failed` shows a validation issue, and `error` represents an unexpected exception.Example:success
Example:
{
"status":"success",
"result":"Publish run updated to AllData"
}Examples
500 Response
Returned when the service encounters an unexpected server-side error while processing the request.
Root Schema : schema
Type:
Show Source
array-
Array of:
object BulkRulePublishRunResponseItemDoc
Entry describing the outcome of a publish run update for a specific rule.
Nested Schema : BulkRulePublishRunResponseItemDoc
Type:
objectEntry describing the outcome of a publish run update for a specific rule.
Show Source
-
error: object
BulkRuleMgmtErrorDoc
Error payload returned when a request cannot be processed.
-
httpErrorCode: integer
(int32)
Minimum Value:
100Maximum Value:599HTTP status code that would have been returned for this entry if processed individually.Example:200 -
httpErrorMessage: string
Minimum Length:
2Maximum Length:64HTTP status text associated with the error code.Example:Success -
jobStatus: string
Minimum Length:
5Maximum Length:10Allowed Values:[ "Success", "Failed", "Error", "InProgress", "Queued" ]Processing outcome for the rule. `Success` means the publish run was updated, `Failed` signals a validation problem, `Error` reports an unexpected server issue, `InProgress` denotes an active update, and `Queued` indicates that processing has not started yet.Example:Success -
result: object
BulkRulePublishRunResultDoc
Result object returned when a publish run update succeeds.
-
ruleId: string
Minimum Length:
32Maximum Length:36Unique identifier of the rule.Example:8E2253D8E53A4A46BAE3E4952CBE9E5A -
ruleName: string
Minimum Length:
3Maximum Length:256Name of the rule.Example:Out of Range Visit Date -
ruleValidationMessage: string
Minimum Length:
5Maximum Length:512Validation message resulting from the publish run update.Example:Rule updated successfully. -
ruleValidationStatus: boolean
Allowed Values:
[ true, false ]Indicates whether the rule remains valid after processing. `true` means validation succeeded for the rule entry, while `false` records warnings or errors.Example:true
Example:
{
"ruleId":"8E2253D8E53A4A46BAE3E4952CBE9E5A",
"ruleName":"Out of Range Visit Date",
"jobStatus":"Success",
"ruleValidationMessage":"Rule updated successfully.",
"ruleValidationStatus":true,
"httpErrorCode":200,
"httpErrorMessage":"Success",
"result":{
"status":"success",
"result":"Publish run updated to AllData"
},
"error":null
}Nested Schema : BulkRuleMgmtErrorDoc
Type:
objectError payload returned when a request cannot be processed.
Show Source
-
details: string
Minimum Length:
5Maximum Length:512Optional contextual details that help the caller remediate the failure.Example:ruleIds must contain at least one value. -
errorCode: string
Minimum Length:
5Maximum Length:32Application level error code.Example:JSON-004 -
errorMessage: string
Minimum Length:
10Maximum Length:512Human-readable explanation of the error.Example:Invalid UUID list. One or more elements are invalid. Must contain at least one element. -
result: string
Minimum Length:
5Maximum Length:256Successful result content when available; typically null for errors.Example:No result returned because the request failed validation. -
status: string
Minimum Length:
6Maximum Length:6Allowed Values:[ "failed" ]Overall status of the call. `failed` indicates the request could not be completed, `success` is never returned for this payload.Example:failed
Example:
{
"status":"failed",
"result":null,
"errorCode":"JSON-004",
"errorMessage":"Invalid UUID list. One or more elements are invalid. Must contain at least one element.",
"details":"ruleIds must contain at least one value."
}Nested Schema : BulkRulePublishRunResultDoc
Type:
objectResult object returned when a publish run update succeeds.
Show Source
-
result: string
Minimum Length:
5Maximum Length:256Additional message describing the change that was applied.Example:Publish run updated to AllData -
status: string
Minimum Length:
3Maximum Length:10Allowed Values:[ "success", "failed", "error" ]Outcome status string. `success` indicates the publish run change applied, `failed` shows a validation issue, and `error` represents an unexpected exception.Example:success
Example:
{
"status":"success",
"result":"Publish run updated to AllData"
}Examples