---
title: "Use AI to generate a code fix for the incident"
method: POST
path: "/api/v1/code-engine/generate-fix/{id}"
tags: ["CodeEngine"]
---

# Use AI to generate a code fix for the incident

`POST /api/v1/code-engine/generate-fix/{id}`

## Request

- Base URL: `http://localhost:5000/api/v1`
- URL: `http://localhost:5000/api/v1/api/v1/code-engine/generate-fix/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/scrubbe/apis/scrubbe-api/docs/api/v1/code-engine/generate-fix/:id/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

---

[API](https://skmtc.dev/scrubbe/apis/scrubbe-api.md) - [All operations](https://skmtc.dev/scrubbe/apis/scrubbe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scrubbe/apis/scrubbe-api/revisions/45bb33d61b7e?raw)
