إنتقل إلى المحتوى الرئيسي

هذه الصفحة غير متاحة بالعربية بعد، وتُعرض بالإنجليزية.

Dexwize workflow service

No-code remediation workflows (E31, ADR-0037). Definitions are drafts until published; each publish creates an immutable, hashed version and rollback republishes an older one as a new version. Runs are pinned to the version they started on and are interpreted deterministically on Temporal. Remediation steps go through remediation-service, so tenant autonomy and approval policy always apply; approval steps cannot be decided by the run starter or the workflow owner.

Version 1.0.0. Download the OpenAPI specification.

Authentication: bearer.

Operations​

MethodPathSummary
GET/v1/workflow-runs/{runId}Get a run with its step history (FindingsRead)
POST/v1/workflow-runs/{runId}/steps/{stepId}/decisionApprove or reject a waiting approval step (RecommendationsApprove; audited)
GET/v1/workflowsList workflows (FindingsRead)
POST/v1/workflowsCreate a workflow from a draft definition (RemediationExecute; audited)
GET/v1/workflows/{id}Get a workflow with its draft and versions (FindingsRead)
POST/v1/workflows/{id}/disableDisable triggers and new runs (RemediationExecute; audited)
PUT/v1/workflows/{id}/draftReplace the draft (RemediationExecute; audited)
POST/v1/workflows/{id}/enableEnable triggers and runs (RemediationExecute; audited)
POST/v1/workflows/{id}/publishValidate the draft and publish it as a new immutable version (RemediationExecute; audited)
POST/v1/workflows/{id}/rollbackRepublish an earlier version as a new version (RemediationExecute; audited)
GET/v1/workflows/{id}/runsRun history for a workflow (FindingsRead)
POST/v1/workflows/{id}/runsStart a manual run on the current version (RemediationExecute; audited)
GET/v1/workflows/actionsLibrary action ids a remediation step may use (FindingsRead)
POST/v1/workflows/triggersStart every enabled workflow whose trigger matches an event (WorkflowsTrigger)
POST/v1/workflows/validateValidate a definition without saving it (RemediationExecute)

GET /v1/workflow-runs/{runId}​

Get a run with its step history (FindingsRead)

ParameterInTypeRequiredDescription
runIdpathstringyes
StatusDescriptionBody
200RunRun
404Not found

POST /v1/workflow-runs/{runId}/steps/{stepId}/decision​

Approve or reject a waiting approval step (RecommendationsApprove; audited)

The run starter and the workflow owner are refused; the caller must hold the step approver role.

ParameterInTypeRequiredDescription
runIdpathstringyes
stepIdpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200Decision recordedRun
400Not waiting on this step, self-approval, or missing approver role
403Missing permission, or the tenant plan does not include approval_workflow (ADR-0053): {"error":"feature_not_entitled","feature":"approval_workflow"}FeatureRefusal
404Not found
503Entitlements could not be confirmed and nothing usable is cached; approval_workflow is refused (fail closed). Retry-After is set.FeatureRefusal

GET /v1/workflows​

List workflows (FindingsRead)

StatusDescriptionBody
200WorkflowsWorkflow[]
403Missing FindingsRead

POST /v1/workflows​

Create a workflow from a draft definition (RemediationExecute; audited)

Request body: Definition (JSON).

StatusDescriptionBody
201CreatedWorkflow
400Invalid draft
403Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"}FeatureRefusal
503Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set.FeatureRefusal

GET /v1/workflows/{id}​

Get a workflow with its draft and versions (FindingsRead)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200WorkflowWorkflow
404Not found

POST /v1/workflows/{id}/disable​

Disable triggers and new runs (RemediationExecute; audited)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200DisabledWorkflow
404Not found

PUT /v1/workflows/{id}/draft​

Replace the draft (RemediationExecute; audited)

ParameterInTypeRequiredDescription
idpathstringyes

Request body: Definition (JSON).

StatusDescriptionBody
200UpdatedWorkflow
403Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"}FeatureRefusal
404Not found
503Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set.FeatureRefusal

POST /v1/workflows/{id}/enable​

Enable triggers and runs (RemediationExecute; audited)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200EnabledWorkflow
403Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"}FeatureRefusal
404Not found
503Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set.FeatureRefusal

POST /v1/workflows/{id}/publish​

Validate the draft and publish it as a new immutable version (RemediationExecute; audited)

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200PublishedWorkflow
400Validation errors
403Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"}FeatureRefusal
404Not found
503Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set.FeatureRefusal

POST /v1/workflows/{id}/rollback​

Republish an earlier version as a new version (RemediationExecute; audited)

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200Rolled backWorkflow
400Unknown version, or it no longer validates
403Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"}FeatureRefusal
404Not found
503Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set.FeatureRefusal

GET /v1/workflows/{id}/runs​

Run history for a workflow (FindingsRead)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Runs, newest firstRun[]

POST /v1/workflows/{id}/runs​

Start a manual run on the current version (RemediationExecute; audited)

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
202Run startedRun
400Not published, disabled, or too many devices
403Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"}FeatureRefusal
404Not found
503Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set.FeatureRefusal

GET /v1/workflows/actions​

Library action ids a remediation step may use (FindingsRead)

StatusDescriptionBody
200Action ids from the signed content librarystring[]

POST /v1/workflows/triggers​

Start every enabled workflow whose trigger matches an event (WorkflowsTrigger)

People with the analyst role and services holding workflow_trigger_sender (rules-engine when a finding opens, scoring-service when an alert opens). With an idempotency key a repeated event starts nothing. Schedule triggers are started by workflow-service itself, once per slot.

Request body: TriggerEvent (JSON).

StatusDescriptionBody
200Runs startedRun[]
403Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"}FeatureRefusal
503Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set.FeatureRefusal

POST /v1/workflows/validate​

Validate a definition without saving it (RemediationExecute)

Request body: Definition (JSON).

StatusDescriptionBody
200Validation reportValidation
403Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"}FeatureRefusal
503Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set.FeatureRefusal