v1.0
get
/ec-rule-designer-svc/rest/v1.0/rulemgt/studies/{studyId}/{ruleId}/rulehistory
Retrieves the audit history of a given rule, including state, validation outcome, and author details. Compared to the legacy v0.9 endpoint, v1.0 introduces the optional `modes` filter and returns the origin channel metadata for each revision.
Request
Path Parameters
-
ruleId(required): string(uuid)
Rule identifier. Required for path parameters targeting a single rule; optional when used as a query filter.Example:
8E2253D8E53A4A46BAE3E4952CBE9E5A -
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
Query Parameters
-
modes(required): array[string]
Required list of study modes to filter the history results.
-
Minimum Length:
4Maximum Length:8Allowed Values:[ "design", "test", "training", "active" ]Study mode to include in the history response. Allowed values: design, test, training, or active.Example:design
Example:[ "design", "test" ] -
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Returned when rule history records are found for the supplied identifiers.
Root Schema : RuleHistoryResponseDoc
Type:
objectEnvelope returned when fetching rule history by rule identifier.
Show Source
-
result: object
RuleHistoryResultDoc
Rule history entries returned for a rule request.
-
status: string
Minimum Length:
6Maximum Length:7Allowed Values:[ "success", "failed" ]Overall outcome of the call. Allowed values: success, failed.Example:success
Nested Schema : RuleHistoryResultDoc
Type:
objectRule history entries returned for a rule request.
Show Source
-
rules: array
rules
Historical revisions ordered by version date.
Example:
{
"rules":[
{
"ruleId":"38891F5E75BB4071BBF8ACE1F43BD1BD",
"ruleRevisionNumber":3
}
]
}Nested Schema : rules
Type:
arrayHistorical revisions ordered by version date.
Show Source
-
Array of:
object RuleHistoryEntryDoc
Historical snapshot of a rule revision returned by the history endpoint.
Example:
[
{
"ruleId":"38891F5E75BB4071BBF8ACE1F43BD1BD",
"ruleRevisionNumber":3
}
]Nested Schema : RuleHistoryEntryDoc
Type:
objectHistorical snapshot of a rule revision returned by the history endpoint.
Show Source
-
ruleDeleted: integer
(int32)
Minimum Value:
0Maximum Value:1Flag indicating whether the rule was deleted in this revision (0 = active, 1 = deleted).Example:0 -
ruleDescription: string
Minimum Length:
1Maximum Length:1024Purpose of the rule revision.Example:Validates that visit start date is not later than expected window. -
ruleEnabled: integer
(int32)
Minimum Value:
0Maximum Value:1Flag indicating whether the rule was enabled in this revision.Example:1 -
ruleId: string
Minimum Length:
32Maximum Length:36Unique identifier of the rule revision.Example:38891F5E75BB4071BBF8ACE1F43BD1BD -
ruleName: string
Minimum Length:
3Maximum Length:256Display name for the rule revision.Example:Visit Start Date Validation -
ruleOriginType: string
Minimum Length:
2Maximum Length:12Allowed Values:[ "UI", "API", "INTEGRATION" ]Origin channel for the rule. `UI` denotes portal-authored rules, `API` covers service integrations, and `INTEGRATION` represents synchronized external logic.Example:UI -
ruleRefName: string
Minimum Length:
3Maximum Length:256Reference name that uniquely identifies the rule.Example:VISIT_START_DATE_VALIDATION -
ruleRevisionNumber: integer
(int32)
Minimum Value:
0Maximum Value:9999Revision number assigned to the record.Example:3 -
ruleState: string
Minimum Length:
4Maximum Length:8Allowed Values:[ "draft", "uat", "approved", "publish" ]Workflow state captured in this revision.Example:approved -
ruleValidationMessage: string
Minimum Length:
1Maximum Length:512Validation message captured for the revision.Example:Rule evaluated successfully. -
ruleValidationStatus: string
Minimum Length:
4Maximum Length:5Allowed Values:[ "true", "false" ]Validation status for the revision. `true` indicates success, `false` indicates the presence of warnings or errors.Example:true -
studyId: string
Minimum Length:
32Maximum Length:36Identifier of the study associated with the rule revision.Example:36753A48BBA048CB98A5F3278146118D -
studymode: string
Minimum Length:
4Maximum Length:10Allowed Values:[ "design", "test", "training", "production", "active" ]Study mode that captured the revision. Allowed values: design, test, training, production, active.Example:test -
studyversion: string
Minimum Length:
3Maximum Length:32Study version tied to the revision.Example:3.2.0.18 -
userId: string
Minimum Length:
32Maximum Length:32Identifier for the user who performed the change.Example:0000000000000000000000000000000A -
userName: string
Minimum Length:
2Maximum Length:64User name of the individual who performed the change.Example:jsmith -
versionEnd: string
(date-time)
Minimum Length:
20Maximum Length:30Timestamp when this revision was superseded.Example:2025-10-11T08:30:00Z -
versionStart: string
(date-time)
Minimum Length:
20Maximum Length:30Timestamp when this rule revision became effective.Example:2025-09-07T19:12:08Z
Example:
{
"ruleId":"38891F5E75BB4071BBF8ACE1F43BD1BD",
"ruleRevisionNumber":3,
"ruleDeleted":0,
"ruleEnabled":1,
"ruleName":"Visit Start Date Validation",
"ruleState":"approved",
"ruleValidationStatus":"true",
"ruleOriginType":"UI",
"studymode":"test"
}Examples
204 Response
Returned when no history entries exist for the supplied rule identifier and study context.
Root 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 : details
Type:
objectRead Only:
trueOptional diagnostic information when available.
Example:
Validation failed for ruleId 8E2253D8E53A4A46BAE3E4952CBE9E5A.Examples
400 Response
Returned when the supplied identifiers fail validation or the query parameters are malformed.
Root 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 : details
Type:
objectRead Only:
trueOptional diagnostic information when available.
Example:
Validation failed for ruleId 8E2253D8E53A4A46BAE3E4952CBE9E5A.Examples
500 Response
Returned when the rule history retrieval encounters an unexpected server-side error.
Root 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 : details
Type:
objectRead Only:
trueOptional diagnostic information when available.
Example:
Validation failed for ruleId 8E2253D8E53A4A46BAE3E4952CBE9E5A.Examples