---
title: "Record the triage of one email"
method: PATCH
path: "/v1/admin/emails/{id}"
tags: ["Admin"]
---

# Record the triage of one email

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

## Request

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

`category` + a one-line `summary` in our words. `problem: true` only for a bug, a technical issue or a clear shortfall of a feature: it opens an incident for the auto-fixer, titled `problemTitle`.

## 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
  - `category` 'bug' | 'feature' | 'question' | 'business' | 'feedback' | 'spam' | 'other', required
  - `summary` string, required
  - `problem` boolean, required
  - `problemTitle` string

## Response `200`

Triaged

- object
  - `email` InboundEmailRow, 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)
