---
title: "Update an incident's status"
method: PATCH
path: "/v1/admin/incidents/{id}"
tags: ["Admin"]
---

# Update an incident's status

`PATCH /v1/admin/incidents/{id}`

## Request

- Base URL: `http://api.technooptimist.io`
- URL: `http://api.technooptimist.io/v1/admin/incidents/{id}`
- Auth: HTTP bearer

`in_progress` when work starts; `fixed` only after the fix is deployed and verified (with a one-sentence `summary` and `commitSha`); `not_a_bug` with the reason in `summary`. `needs_owner` is refused (422) except from to-autofix when locked out of an account.

## Path parameters

- `id` integer, required

## Headers

- `x-routine-name` string: Name of the routine making the write; recorded as `routine:<name>` in the audit log.

## Request body

- object
  - `status` 'new' | 'seen' | 'in_progress' | 'fixed' | 'not_a_bug' | 'needs_owner'
  - `summary` string
  - `commitSha` string
  - `issue` integer

## Response `200`

Updated

- object
  - `incident` Incident, required

## Other responses

- `401`: Missing or invalid credentials
- `403`: Credential lacks the required scope
- `404`: Not found
- `409`: Conflict
- `422`: Validation failed

---

[API](https://skmtc.dev/technooptimist/apis/the-techno-optimist-api.md) · [All operations](https://skmtc.dev/technooptimist/apis/the-techno-optimist-api/llms.txt) · [OpenAPI document](https://skmtc.dev/technooptimist/apis/the-techno-optimist-api/revisions/b7bcde6a0f30?raw)
