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

# Update an incident

> Triages an incident. All fields are optional. There is no assignee field.

- Setting `status` to `resolved` sets `resolvedAt`. Any other status clears it.
- Setting `severity` locks it against auto-escalation.

**Required permission:** `alerts:manage`




## OpenAPI

````yaml /api-reference/openapi.yaml patch /api/v1/incidents/{id}
openapi: 3.1.0
info:
  title: Igris Management API
  version: '1'
  description: >-
    REST API for managing Igris connections, policies, sessions, audit events
    and alerts.
servers:
  - url: https://api.igrisecurity.com
security:
  - bearerAuth: []
tags:
  - name: Connections
  - name: Policies
  - name: Sessions
  - name: Audit Events
  - name: Incidents
  - name: Webhooks
  - name: API Keys
  - name: Members
  - name: LLM Providers
  - name: LLM Cost
  - name: Observe
paths:
  /api/v1/incidents/{id}:
    patch:
      tags:
        - Incidents
      summary: Update an incident
      description: >
        Triages an incident. All fields are optional. There is no assignee
        field.


        - Setting `status` to `resolved` sets `resolvedAt`. Any other status
        clears it.

        - Setting `severity` locks it against auto-escalation.


        **Required permission:** `alerts:manage`
      operationId: updateIncident
      parameters:
        - $ref: '#/components/parameters/Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  enum:
                    - open
                    - investigating
                    - resolved
                severity:
                  type: string
                  enum:
                    - critical
                    - high
                    - medium
                    - low
                    - info
                suggested_action:
                  type:
                    - string
                    - 'null'
                resolution_note:
                  type:
                    - string
                    - 'null'
                title:
                  type: string
                  minLength: 1
                  maxLength: 200
                summary:
                  type: string
                  minLength: 1
                  maxLength: 1000
            example:
              status: resolved
              resolution_note: Revoked the leaked key.
      responses:
        '200':
          description: The updated incident.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Incident'
              example:
                data:
                  id: 2b3c4d5e-0000-4000-8000-000000000008
                  status: resolved
                  resolutionNote: Revoked the leaked key.
                  resolvedAt: '2026-01-01T02:00:00Z'
                  updatedAt: '2026-01-01T02:00:00Z'
        '400':
          description: >
            The id is not a UUID (`{ "error": "Invalid incident id" }`), or the
            body failed validation (Zod shape).
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/Error'
                  - $ref: '#/components/schemas/ZodValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    Incident:
      type: object
      properties:
        id:
          type: string
          format: uuid
        organizationId:
          type: string
        clusterKey:
          type: string
        title:
          type: string
        summary:
          type: string
        status:
          type: string
          enum:
            - open
            - investigating
            - resolved
        severity:
          type: string
          enum:
            - critical
            - high
            - medium
            - low
            - info
        severityLocked:
          type: boolean
          description: >-
            True once someone set the severity by hand. A locked severity is not
            auto-escalated.
        category:
          type: string
          enum:
            - denial
            - anomaly
            - session
        anomalyType:
          type:
            - string
            - 'null'
          description: Snake_case anomaly detector id
          such as `rate_spike`.: null
        policyId:
          type:
            - string
            - 'null'
          format: uuid
        policyName:
          type:
            - string
            - 'null'
        actorKind:
          type:
            - string
            - 'null'
        actorId:
          type:
            - string
            - 'null'
        actorName:
          type:
            - string
            - 'null'
        connectionSlug:
          type:
            - string
            - 'null'
        suggestedAction:
          type:
            - string
            - 'null'
        resolutionNote:
          type:
            - string
            - 'null'
        eventCount:
          type: integer
        firstSeen:
          type: string
          format: date-time
        lastSeen:
          type: string
          format: date-time
        resolvedAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    ZodValidationError:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          properties:
            name:
              type: string
              example: ZodError
            message:
              type: string
              description: JSON string of the validation issues.
    ForbiddenError:
      type: object
      properties:
        error:
          type: string
          example: Forbidden
        required:
          type: string
          description: The permission the caller lacks.
          example: policies:write
  responses:
    Unauthorized:
      description: No valid session or API key, or the key's creator is no longer a member.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
    Forbidden:
      description: The caller lacks the required permission.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenError'
    NotFound:
      description: Not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ig_...
      description: >-
        An Igris API key. It acts with the current role and permission overrides
        of the member who created it.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.