Dexwize Recommendation Service
Evidence-backed, prioritized recommendations (E07) with an approval workflow, change records and before/after measurement. Analysts request (RemediationExecute), approvers decide (RecommendationsApprove), and the requester can never approve their own request (403). Invalid state transitions return 409. Cross-tenant access returns 404. Enums are serialized as names.
Version 1.0.0. Download the OpenAPI specification.
Authentication: bearer.
Operations
| Method | Path | Summary |
|---|
GET | /v1/changes/{changeId} | getChangeRecord |
GET | /v1/changes/{changeId}/package | Download the remediation package manifest for the customer's tooling (RemediationExecute; audited) |
GET | /v1/impact-assumptions | getImpactAssumptions |
PUT | /v1/impact-assumptions | Replace the tenant's impact assumptions; the version increments (TenantManage; audited) |
GET | /v1/recommendations | List recommendations by priority (FindingsRead) |
GET | /v1/recommendations/{id} | getRecommendation |
POST | /v1/recommendations/{id}/approve | Approve and create the change record (RecommendationsApprove; not the requester) |
POST | /v1/recommendations/{id}/defer | deferRecommendation |
POST | /v1/recommendations/{id}/implemented | Record implementation; schedules the before/after measurement 7 days later (RemediationExecute) |
POST | /v1/recommendations/{id}/reject | rejectRecommendation |
POST | /v1/recommendations/{id}/submit | Request approval (RemediationExecute) |
POST | /v1/recommendations/generate | Create proposals for open findings that have none (RemediationExecute); idempotent per finding |
GET /v1/changes/{changeId}
| Parameter | In | Type | Required | Description |
|---|
changeId | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | OK | ChangeRecord |
| 404 | Not found | |
GET /v1/changes/{changeId}/package
Download the remediation package manifest for the customer's tooling (RemediationExecute; audited)
| Parameter | In | Type | Required | Description |
|---|
changeId | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | dexwize.remediation-package.v1 manifest, SHA-256 stamped; contains no executable content | object |
| 404 | Not found | |
GET /v1/impact-assumptions
| Status | Description | Body |
|---|
| 200 | OK | ImpactAssumptions |
PUT /v1/impact-assumptions
Replace the tenant's impact assumptions; the version increments (TenantManage; audited)
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Saved | ImpactAssumptions |
| 400 | Values out of bounds | |
| 403 | Missing permission, or the tenant plan does not include recommendations (ADR-0053): {"error":"feature_not_entitled","feature":"recommendations"} | FeatureRefusal |
| 503 | Entitlements could not be confirmed and nothing usable is cached; recommendations is refused (fail closed). Retry-After is set. | FeatureRefusal |
GET /v1/recommendations
List recommendations by priority (FindingsRead)
| Parameter | In | Type | Required | Description |
|---|
status | query | string | no | |
| Status | Description | Body |
|---|
| 200 | OK | Recommendation[] |
| 400 | Unknown status | |
GET /v1/recommendations/{id}
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | OK | Recommendation |
| 404 | Not found | |
POST /v1/recommendations/{id}/approve
Approve and create the change record (RecommendationsApprove; not the requester)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Approved | Recommendation |
| 403 | Requester cannot approve their own request, missing permission, or the tenant plan does not include recommendations (ADR-0053): {"error":"feature_not_entitled","feature":"recommendations"} | FeatureRefusal |
| 404 | Not found | |
| 409 | Not requested, invalid window, or missing rollback steps | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; recommendations is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/recommendations/{id}/defer
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Deferred; reopens automatically when the deferral ends | Recommendation |
| 403 | Missing permission, or the tenant plan does not include recommendations (ADR-0053): {"error":"feature_not_entitled","feature":"recommendations"} | FeatureRefusal |
| 409 | Not proposed, or the deferral end is not in the future | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; recommendations is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/recommendations/{id}/implemented
Record implementation; schedules the before/after measurement 7 days later (RemediationExecute)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Implemented | Recommendation |
| 409 | Not approved, or implementation time in the future | |
POST /v1/recommendations/{id}/reject
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Rejected | Recommendation |
| 400 | Reason missing | |
| 403 | Missing permission, or the tenant plan does not include recommendations (ADR-0053): {"error":"feature_not_entitled","feature":"recommendations"} | FeatureRefusal |
| 409 | Not allowed in the current state | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; recommendations is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/recommendations/{id}/submit
Request approval (RemediationExecute)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | OK | Recommendation |
| 403 | Missing permission, or the tenant plan does not include recommendations (ADR-0053): {"error":"feature_not_entitled","feature":"recommendations"} | FeatureRefusal |
| 404 | Not found | |
| 409 | Not allowed in the current state | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; recommendations is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/recommendations/generate
Create proposals for open findings that have none (RemediationExecute); idempotent per finding
| Status | Description | Body |
|---|
| 200 | The recommendations created by this call | Recommendation[] |
| 403 | Missing permission, or the tenant plan does not include recommendations (ADR-0053): {"error":"feature_not_entitled","feature":"recommendations"} | FeatureRefusal |
| 503 | Entitlements could not be confirmed and nothing usable is cached; recommendations is refused (fail closed). Retry-After is set. | FeatureRefusal |