---
title: "Change the project's autofix policy. The caller becomes the user that automatic incidents act as."
method: PATCH
path: "/projects/{project_id}/autofix/settings"
tags: ["Autofix"]
---

# Change the project's autofix policy. The caller becomes the user that automatic incidents act as.

`PATCH /projects/{project_id}/autofix/settings`

## 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/settings`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Request body

- UpdateAutofixSettingsRequest
  - `ai_model` string, nullable: Empty string clears it.
  - `ai_provider` string, nullable: Empty string clears it (back to the assistant's default).
  - `min_confidence` integer, nullable: Confidence level, 0-5, an `auto_merge` fix must reach.
  - `mode` string, nullable: `off`, `propose` or `auto_merge`.
  - `protected_paths` string[], nullable
  - `test_command` string, nullable: Empty string clears it.

## Response `200`

- AutofixSettingsResponse
  - `ai_model` string, nullable
  - `ai_provider` string, nullable
  - `min_confidence` integer, required: Confidence level, 0-5, an `auto_merge` fix must reach.
  - `mode` string, required: `off`, `propose` or `auto_merge`.
  - `owner_user_id` integer, nullable: User automatic incidents act as.
  - `paused` boolean, required
  - `project_id` integer, required
  - `protected_paths` string[], required
  - `test_command` string, nullable: Command the server runs to verify a fix, in addition to the agent's reproduction.
  - `updated_at` string, date-time, nullable

## Other responses

- `400`
- `401`
- `403`
- `404`
- `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/settings/patch.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)
