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

# Regenerate postmortem



## OpenAPI

````yaml /api/openapi.yaml post /api/v1/incidents/{incident}/postmortem/regenerate
openapi: 3.1.0
info:
  title: OpenCluster Control Plane API
  version: 0.1.0
  description: HTTP contract for the OpenCluster product API and inbound webhook endpoints.
  license:
    name: Apache-2.0
servers:
  - url: http://localhost:8080
    description: Local self-hosted deployment
security: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Members
  - name: Sessions
  - name: Policy
  - name: Audit
  - name: Integration Types
  - name: Integrations
  - name: Relays
  - name: Incidents
  - name: Investigations
  - name: Conversations
  - name: Postmortems
  - name: Webhook Deliveries
  - name: Webhook Intake
  - name: Metadata
paths:
  /api/v1/incidents/{incident}/postmortem/regenerate:
    parameters:
      - $ref: '#/components/parameters/IncidentID'
    post:
      tags:
        - Postmortems
      summary: Regenerate postmortem
      operationId: regeneratePostmortem
      parameters:
        - $ref: '#/components/parameters/Organization'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostmortemHumanInput'
        required: false
      responses:
        '200':
          $ref: '#/components/responses/Postmortem'
        default:
          $ref: '#/components/responses/ErrorResponse'
      security:
        - SessionCookie: []
components:
  parameters:
    IncidentID:
      name: incident
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/UUID'
    Organization:
      name: X-OpenCluster-Organization
      in: header
      required: true
      description: Selects the Organization whose data and membership are authorized.
      schema:
        $ref: '#/components/schemas/OrganizationID'
      example: acme-production
  schemas:
    PostmortemHumanInput:
      type: object
      additionalProperties: false
      properties:
        impact:
          type: string
          maxLength: 32768
        resolution:
          type: string
          maxLength: 32768
        whatWentWell:
          type: array
          items:
            type: string
            maxLength: 8192
        whatWentWrong:
          type: array
          items:
            type: string
            maxLength: 8192
        detectionGaps:
          type: array
          items:
            type: string
            maxLength: 8192
    UUID:
      type: string
      format: uuid
    OrganizationID:
      type: string
      pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
      minLength: 1
      maxLength: 63
    Postmortem:
      type: object
      additionalProperties: false
      required:
        - incidentId
        - status
        - revision
        - title
        - executiveSummary
        - impact
        - detection
        - timeline
        - rootCauses
        - contributingFactors
        - resolution
        - whatWentWell
        - whatWentWrong
        - detectionGaps
        - actionItems
        - openQuestions
        - createdAt
        - updatedAt
      properties:
        incidentId:
          $ref: '#/components/schemas/UUID'
        status:
          type: string
          enum:
            - draft
            - reviewed
        revision:
          type: integer
          minimum: 1
        title:
          type: string
          minLength: 1
          maxLength: 1024
        executiveSummary:
          type: string
          minLength: 1
          maxLength: 32768
        impact:
          type: string
          minLength: 1
          maxLength: 32768
        detection:
          type: string
          minLength: 1
          maxLength: 32768
        timeline:
          type: array
          items:
            $ref: '#/components/schemas/TimelineEntry'
        rootCauses:
          type: array
          items:
            $ref: '#/components/schemas/CitedStatement'
        contributingFactors:
          type: array
          items:
            $ref: '#/components/schemas/CitedStatement'
        resolution:
          type: string
          minLength: 1
          maxLength: 32768
        whatWentWell:
          type: array
          items:
            type: string
            maxLength: 8192
        whatWentWrong:
          type: array
          items:
            type: string
            maxLength: 8192
        detectionGaps:
          type: array
          items:
            type: string
            maxLength: 8192
        actionItems:
          type: array
          items:
            $ref: '#/components/schemas/ActionItem'
        openQuestions:
          type: array
          items:
            type: string
            maxLength: 8192
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        updatedAt:
          $ref: '#/components/schemas/Timestamp'
        reviewedAt:
          $ref: '#/components/schemas/Timestamp'
        reviewedBy:
          type: string
          maxLength: 256
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
          maxLength: 1024
          example: the selected Organization is not available to this caller
        reason:
          type: string
          enum:
            - credential_rejected
            - session_expired
            - session_revoked
        requires:
          type: string
          minLength: 1
          maxLength: 128
    TimelineEntry:
      type: object
      additionalProperties: false
      required:
        - at
        - description
        - runRefs
      properties:
        at:
          $ref: '#/components/schemas/Timestamp'
        description:
          type: string
          minLength: 1
          maxLength: 8192
        investigationId:
          $ref: '#/components/schemas/UUID'
        runRefs:
          type: array
          items:
            type: integer
            minimum: 1
          uniqueItems: true
    CitedStatement:
      type: object
      additionalProperties: false
      required:
        - statement
        - runRefs
      properties:
        investigationId:
          $ref: '#/components/schemas/UUID'
        findingId:
          type: string
          maxLength: 128
        statement:
          type: string
          minLength: 1
          maxLength: 8192
        runRefs:
          type: array
          items:
            type: integer
            minimum: 1
          uniqueItems: true
    ActionItem:
      type: object
      additionalProperties: false
      required:
        - title
        - owner
        - deadline
        - verification
        - runRefs
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 1024
        owner:
          type: string
          minLength: 1
          maxLength: 256
        deadline:
          type: string
          minLength: 1
          maxLength: 128
        verification:
          type: string
          minLength: 1
          maxLength: 8192
        investigationId:
          $ref: '#/components/schemas/UUID'
        runRefs:
          type: array
          items:
            type: integer
            minimum: 1
          uniqueItems: true
    Timestamp:
      type: string
      format: date-time
  responses:
    Postmortem:
      description: Postmortem.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Postmortem'
    ErrorResponse:
      description: The operation did not complete.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    SessionCookie:
      type: apiKey
      in: cookie
      name: __Host-oc_session

````