---
title: "Draft Fix"
method: POST
path: "/v1/repos/{repository_id}/draft-fix"
---

# Draft Fix

`POST /v1/repos/{repository_id}/draft-fix`

## Request

- Base URL: `https://api.graphify.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.graphify.com/v1/repos/{repository_id}/draft-fix`
- Auth: HTTP bearer

Draft a fix for a Jira ticket -> a verified draft PR. Mirrors the apply-fix route's
gating: REPOS_MANAGE, the ``autofix_enabled`` kill switch, a PAID plan, a connected
Jira, an owned repo, and a per-tenant monthly cap.

## Path parameters

- `repository_id` string, uuid, required

## Headers

- `X-Graphify-Tenant-ID` string, required

## Request body

- DraftFixRequest: The body of ``POST /v1/repos/{repository_id}/draft-fix``: the ticket to fix.
  - `ticketKey` string, required

## Response `202`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/graphify/apis/graphify-control-plane.md) · [All operations](https://skmtc.dev/graphify/apis/graphify-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/graphify/apis/graphify-control-plane/revisions/0e75c82b5ea8?raw)
