Skip to main content
POST
Apply Scan Fixes
Runs the scanner’s automated-fix functions against openclaw.json in the given workspace. A .json.bak backup is written before any change. The config file is rewritten only if at least one fix applied successfully.

Request body — ScanFixPayload

workspace_path
string
required
Path to the OpenClaw workspace (must contain openclaw.json).
check_ids
string[]
required
List of check IDs to attempt to fix.

Errors

  • 400openclaw.json not found at workspace path
  • 400 — Failed to parse openclaw.json
  • 503 — Scanner not installed (pip install tracectrl-scanner)

Response

applied
string[]
Check IDs whose fix ran successfully
skipped
string[]
Check IDs with no registered automated fix
errors
object
Map of check_id to error message for fixes that raised