> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kodostatus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Incident

> Update an incident status or add an update message

## Path Parameters

<ParamField path="id" type="string" required>
  The incident ID
</ParamField>

## Body Parameters

<ParamField body="title" type="string">
  Updated incident title
</ParamField>

<ParamField body="status" type="string">
  New status: `investigating`, `identified`, `monitoring`, `resolved`
</ParamField>

<ParamField body="message" type="string">
  Update message to add to the incident timeline
</ParamField>

<ParamField body="severity" type="string">
  Updated severity: `minor`, `major`, `critical`
</ParamField>

## Response

Returns the updated incident object.

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://kodostatus.com/api/v1/incidents/550e8400-e29b-41d4-a716-446655440000" \
    -H "X-API-Key: your_api_key" \
    -H "Content-Type: application/json" \
    -d '{
      "status": "identified",
      "message": "We have identified the root cause"
    }'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://kodostatus.com/api/v1/incidents/550e8400-e29b-41d4-a716-446655440000',
    {
      method: 'PATCH',
      headers: {
        'X-API-Key': process.env.KODO_API_KEY,
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        status: 'identified',
        message: 'We have identified the root cause'
      })
    }
  );
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "title": "Database connectivity issues",
    "status": "identified",
    "severity": "major",
    "started_at": "2026-01-15T10:30:00.000Z",
    "resolved_at": null,
    "created_at": "2026-01-15T10:30:00.000Z",
    "updated_at": "2026-02-20T09:00:00.000Z"
  }
  ```
</ResponseExample>
