Remediate Finding
remediate_findingPreview a finding's platform remediation as a structured diff, then apply it after explicit confirmation, recording the operator's justification.
Instructions
Preview, and on confirmation apply, the platform's remediation of a finding.
Without apply it is read-only: it returns a structured diff of what
the remediation would change, shaped by the finding's kind (for
structural_duplicate_controls: which controls are kept, which
dropped, and the CO mappings and framework refs the survivor takes).
Show the operator that diff and get explicit confirmation.
With apply=True it commits the change, recording justification
(a one-line operator rationale, required) on the audit trail. Never
apply without having shown the preview: the platform records who acted
but does not enforce the preview — the agent does.
404 when the finding does not exist; 422 when its kind has no automatic remediation (resolve those with the control tools); applying a finding already remediated or dismissed is refused (409).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | False (default) previews; True applies. | |
| finding_id | Yes | ID of the finding. | |
| justification | No | With ``apply=True``: the operator's rationale. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||