---
title: "Auto Fix Step"
method: POST
path: "/api/v1/steps/{step_id}/auto-fix"
tags: ["steps"]
---

# Auto Fix Step

`POST /api/v1/steps/{step_id}/auto-fix`

Dispatch an auto-fix job for a failed step.

Finds the most recent failed StepRun and sends error context to the agent
for automatic code repair.

## Path parameters

- `step_id` string, uuid, required

## Response `202`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/netter/apis/dmi-backend.md) · [All operations](https://skmtc.net/netter/apis/dmi-backend/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netter/dmi-backend/versions/a59877bf911b/schema)
