Cancel job
put
/ec-rule-svc/rest/v1.0/studies/{studyId}/{mode}/cancelRuleJob
Cancels job associated with a given rule ID, if the job is in pending or running state.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.Example:
test -
studyId(required): string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.Example:
C360089F838D4DD980322DE22545C49F
Supported Media Types
- application/json
Root Schema : Rule IDs Object
Type:
objectTitle:
Rule IDs ObjectObject containing a list of Rule IDs
Show Source
-
ruleIds(required): array
ruleIds
list of Rule Unique GUIDs
Nested Schema : ruleIds
Type:
arraylist of Rule Unique GUIDs
Show Source
-
Array of:
string(uuid)
list of Rule Unique GUIDs
Example:
[
"938D23FA6B7241CCA41BD627E5DB60DA",
"699EF3745FC545589F186D2198F3C65E"
]Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Rule execution was successful.
Root Schema : Job Status List Response
Type:
objectTitle:
Job Status List ResponseResponse object containing list of Job statuses
Show Source
-
errorMessage: string
Error message if anyExample:
Success -
jobStatus: object
Job Status Response
Title:
Job Status ResponseJob status response object
Nested Schema : Job Status Response
Type:
objectTitle:
Job Status ResponseJob status response object
Show Source
-
jobId: string
(UUID)
Identifier((UUID, 32-character uppercase hexadecimal string)) for the rule execution job.Example:
91F4E249F44C4C14A372EE30CEA6B7A8 -
jobStartDate: string
Job Start DateExample:
2025-09-07 19:12:08.747 -
jobStatus: string
Allowed Values:
[ "Running", "Success", "Failed", "Cancelled", "Completed with errors", "Pending", "Rule is not in publish state", "Rule is invalid", "Rule is disabled", "Rule doesn't exist", "Failed to cancel job", "Skipped because subject is locked" ]Job StatusExample:Success -
ruleId: string
(UUID)
Identifier((UUID, 32-character uppercase hexadecimal string)) for the rule.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
ruleName: string
Rule NameExample:
Calculate BMI
Examples
400 Response
Incorrect payload.
Root Schema : Job Status List Response
Type:
objectTitle:
Job Status List ResponseResponse object containing list of Job statuses
Show Source
-
errorMessage: string
Error message if anyExample:
Success -
jobStatus: object
Job Status Response
Title:
Job Status ResponseJob status response object
Nested Schema : Job Status Response
Type:
objectTitle:
Job Status ResponseJob status response object
Show Source
-
jobId: string
(UUID)
Identifier((UUID, 32-character uppercase hexadecimal string)) for the rule execution job.Example:
91F4E249F44C4C14A372EE30CEA6B7A8 -
jobStartDate: string
Job Start DateExample:
2025-09-07 19:12:08.747 -
jobStatus: string
Allowed Values:
[ "Running", "Success", "Failed", "Cancelled", "Completed with errors", "Pending", "Rule is not in publish state", "Rule is invalid", "Rule is disabled", "Rule doesn't exist", "Failed to cancel job", "Skipped because subject is locked" ]Job StatusExample:Success -
ruleId: string
(UUID)
Identifier((UUID, 32-character uppercase hexadecimal string)) for the rule.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
ruleName: string
Rule NameExample:
Calculate BMI
Examples
500 Response
An internal error occurred.
Root Schema : Job Status List Response
Type:
objectTitle:
Job Status List ResponseResponse object containing list of Job statuses
Show Source
-
errorMessage: string
Error message if anyExample:
Success -
jobStatus: object
Job Status Response
Title:
Job Status ResponseJob status response object
Nested Schema : Job Status Response
Type:
objectTitle:
Job Status ResponseJob status response object
Show Source
-
jobId: string
(UUID)
Identifier((UUID, 32-character uppercase hexadecimal string)) for the rule execution job.Example:
91F4E249F44C4C14A372EE30CEA6B7A8 -
jobStartDate: string
Job Start DateExample:
2025-09-07 19:12:08.747 -
jobStatus: string
Allowed Values:
[ "Running", "Success", "Failed", "Cancelled", "Completed with errors", "Pending", "Rule is not in publish state", "Rule is invalid", "Rule is disabled", "Rule doesn't exist", "Failed to cancel job", "Skipped because subject is locked" ]Job StatusExample:Success -
ruleId: string
(UUID)
Identifier((UUID, 32-character uppercase hexadecimal string)) for the rule.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
ruleName: string
Rule NameExample:
Calculate BMI
Examples