Update a corrective action plan
Remediation
Update a corrective action plan
Requires the caps.write permission + CSRF. Optimistic concurrency: the request body must carry expected_version; a mismatch returns 409 (“refresh and retry”). A status change is checked against a fixed transition table (proposed -> approved -> in_progress -> blocked/completed -> verified/rejected); an out-of-order transition returns 422. On success, increments the CAP’s version, writes an audit_log row (tenant schema) (cap_updated) with only the fields that changed, and returns the updated record. 404 if the CAP does not exist.
PATCH
Update a corrective action plan
Path Parameters
Body
application/json
Available options:
proposed, approved, in_progress, blocked, completed, verified, rejected Available options:
automated, governed, expert Response
Successful Response
Available options:
proposed, approved, in_progress, blocked, completed, verified, rejected Available options:
automated, governed, expert