> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracectrl.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Apply Scan Fixes

> Apply automated remediations to openclaw.json

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

* `400` — `openclaw.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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.