---
title: "The fix as a unified diff, for `git apply`."
method: GET
path: "/projects/{project_id}/autofix/incidents/{incident_id}/patch"
tags: ["Autofix"]
---

# The fix as a unified diff, for \`git apply\`.

`GET /projects/{project_id}/autofix/incidents/{incident_id}/patch`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/autofix/incidents/{incident_id}/patch`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `incident_id` string, required

## Response `200`

Unified diff

## Other responses

- `401`
- `403`
- `404`
- `409`
- `500`

## Changes

> 81 revisions in range; 1 not diffed.

- **2026-10-20** `79089e9f49ee`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/autofix/incidents/:incident_id/patch/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) · [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) · [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/ab6d5d19e930?raw)
