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

# Update an incident



## OpenAPI

````yaml /openapi.json patch /incidents/{id}
openapi: 3.0.0
info:
  title: Uptime Monitor API
  description: >-
    API documentation for the Uptime Monitor application. This API allows users
    to create and manage website monitors, perform checks, and view statistics.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.justanotheruptime.com
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: projects
    description: Project management endpoints
  - name: monitors
    description: Monitor management endpoints
  - name: checks
    description: Check-related endpoints
  - name: statistics
    description: Monitor statistics endpoints
paths:
  /incidents/{id}:
    patch:
      tags:
        - Incidents
      summary: Update an incident
      operationId: IncidentController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateIncidentDto'
      responses:
        '200':
          description: The incident has been successfully updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Incident'
      security:
        - bearer: []
components:
  schemas:
    UpdateIncidentDto:
      type: object
      properties:
        title:
          type: string
          description: The title of the incident
        description:
          type: string
          description: The description of the incident
        status:
          type: string
          description: The status of the incident
          enum:
            - investigating
            - identified
            - monitoring
            - resolved
          default: investigating
        severity:
          type: string
          description: The severity of the incident
          enum:
            - low
            - medium
            - high
            - critical
          default: medium
        monitorId:
          type: string
          description: The ID of the monitor associated with this incident
        projectId:
          type: string
          description: The ID of the project associated with this incident
        startedAt:
          format: date-time
          type: string
          description: The start time of the incident
          default: Current timestamp
    Incident:
      type: object
      properties: {}
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````