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

# Request self-managed diagnosis

> Launch on-demand diagnosis on a self-managed ticket (category required).



## OpenAPI

````yaml /en/api-reference/openapi.en-v2.json post /v2/organizations/{organization_id}/solve/tickets/{ticket_id}/diagnosis
openapi: 3.0.3
info:
  title: API Publica Portal
  version: 1.0.0
  description: Public REST API for portal
servers:
  - url: https://api.flexxible.net/
    description: Portal API
security:
  - bearerAuth: []
tags:
  - name: Solve
    description: Flexxible Solve ticket visibility and management
  - name: Digital activity
    description: Core process group creation by organization
  - name: Locations
    description: Location management (FWS)
  - name: Roles
    description: Role creation endpoint for organization
  - name: Users
    description: User creation endpoint for organization
  - name: Workspace groups
    description: Management endpoints for workspace groups
  - name: Networks
    description: Network management (FWS)
  - name: WiFi Networks
    description: Wi-Fi network management (FWS)
  - name: Workspaces
    description: Workspace deletion endpoint for the organization
  - name: Event logs
    description: Workspace event logs query
  - name: Installed apps
    description: Installed application detail endpoint for the organization
  - name: Authentication
    description: Session context and authentication endpoints
  - name: Microservices
    description: Details of microservices by organization
  - name: Operations
    description: Detail queries for operations by organization
  - name: Organization
    description: Organization operations
  - name: Patch policy targets
    description: Patch policy objective management endpoints
  - name: Product configurations
    description: Product configuration management endpoints
  - name: Reporting Groups
    description: Operations on reporting groups
  - name: Sessions
    description: Session detail endpoint for the organization
  - name: Tenants
    description: Tenant management endpoints
  - name: Workspace Connection Logs
    description: Workspace connection logs query
  - name: Workspace GPO
    description: Query GPOs applied to a session
  - name: Workspace Notifications
    description: Workspace notifications query
paths:
  /v2/organizations/{organization_id}/solve/tickets/{ticket_id}/diagnosis:
    post:
      tags:
        - Solve
      summary: Request self-managed diagnosis
      description: Launch on-demand diagnosis on a self-managed ticket (category required).
      operationId: requestSolveTicketDiagnosis
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[0-9a-f]{24}$
            minLength: 24
            maxLength: 24
          description: Organization identifier.
          example: 507f1f77bcf86cd799439011
        - name: ticket_id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 512
          description: Solve ticket composite identifier.
          example: >-
            flexxible-itsm:507f1f77bcf86cd799439011:261028be-8645-4377-a9ec-3b33c0f0abcd
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SolveTicketDetailV2'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SolveTicketDetailV2:
      allOf:
        - $ref: '#/components/schemas/SolveTicketListItemV2'
        - type: object
          properties:
            category_mode:
              type: string
            ticket_type:
              type: string
              nullable: true
            assignment_group:
              type: string
              nullable: true
            pending_reason:
              type: string
              nullable: true
            external_status_reason:
              type: string
              nullable: true
            lifecycle_track:
              type: string
              nullable: true
            workspace_confidence:
              type: number
              nullable: true
            classification_scope:
              type: string
              nullable: true
            classification_confidence:
              type: number
              nullable: true
            classification_method:
              type: string
              nullable: true
            reopen_count:
              type: integer
              nullable: true
            description:
              type: string
              nullable: true
            assist:
              type: object
              nullable: true
              properties:
                run_id:
                  type: string
                  nullable: true
                phase:
                  type: string
                  nullable: true
                status:
                  type: string
                  nullable: true
                ticket_id:
                  type: string
                  nullable: true
                started_at:
                  type: string
                  format: date-time
                  nullable: true
                updated_at:
                  type: string
                  format: date-time
                  nullable: true
                outcome:
                  type: string
                  nullable: true
                diagnosis:
                  type: string
                  nullable: true
                failure_reason:
                  type: string
                  nullable: true
          required:
            - category_mode
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
            details:
              type: string
          required:
            - message
            - code
      required:
        - error
    SolveTicketListItemV2:
      type: object
      properties:
        id:
          type: string
        external_id:
          type: string
        number:
          type: string
          nullable: true
        summary:
          type: string
        status:
          type: string
        external_status_raw:
          type: string
        pipeline_state:
          type: string
        solve_progress:
          type: string
        management_mode:
          type: string
          enum:
            - automated
            - self_managed
        assist:
          type: object
          nullable: true
          properties:
            phase:
              type: string
              nullable: true
            status:
              type: string
              nullable: true
            outcome:
              type: string
              nullable: true
        itsm_type:
          type: string
        received_at:
          type: string
          format: date-time
        created_at_external:
          type: string
          format: date-time
        updated_at_external:
          type: string
          format: date-time
        priority:
          type: string
          nullable: true
        workspace_id:
          type: string
          nullable: true
        workspace_portal_id:
          type: string
          nullable: true
          pattern: ^[0-9a-f]{24}$
        user:
          type: string
          nullable: true
        category_family:
          type: string
          nullable: true
        category_family_label:
          type: string
          nullable: true
        category_id:
          type: string
          nullable: true
        category_label:
          type: string
          nullable: true
        deleted_at:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - external_id
        - summary
        - status
        - external_status_raw
        - pipeline_state
        - solve_progress
        - management_mode
        - itsm_type
        - received_at
        - created_at_external
        - updated_at_external
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````