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

# Merge Autonomy Gaps

> Merge a duplicate blocker into the one to keep. The duplicate is removed and its tickets are moved.



## OpenAPI

````yaml /openapi-v1.json post /api/v1/autonomy-gaps/{gap_id}/merge
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/autonomy-gaps/{gap_id}/merge:
    post:
      tags:
        - Autonomy Gaps
      summary: Merge Autonomy Gaps
      description: >-
        Merge a duplicate blocker into the one to keep. The duplicate is removed
        and its tickets are moved.
      operationId: merge_autonomy_gaps
      parameters:
        - in: path
          name: gap_id
          schema:
            format: uuid
            title: Gap Id
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutonomyGapMergeIn'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutonomyGapDetailSchema'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    AutonomyGapMergeIn:
      properties:
        into_gap_id:
          description: >-
            The blocker to keep: it takes over the tickets of the one merged
            into it.
          format: uuid
          title: Into Gap Id
          type: string
      required:
        - into_gap_id
      title: AutonomyGapMergeIn
      type: object
    AutonomyGapDetailSchema:
      properties:
        id:
          format: uuid
          title: Id
          type: string
        category:
          title: Category
          type: string
        title:
          title: Title
          type: string
        description:
          title: Description
          type: string
        recommendation:
          title: Recommendation
          type: string
        status:
          title: Status
          type: string
        ticket_count:
          title: Ticket Count
          type: integer
        last_seen_at:
          format: date-time
          title: Last Seen At
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        review_notes:
          title: Review Notes
          type: string
        tickets:
          items:
            $ref: '#/components/schemas/AutonomyGapTicketSchema'
          title: Tickets
          type: array
      required:
        - id
        - category
        - title
        - description
        - recommendation
        - status
        - ticket_count
        - last_seen_at
        - created_at
        - review_notes
        - tickets
      title: AutonomyGapDetailSchema
      type: object
    AutonomyGapTicketSchema:
      properties:
        ticket_id:
          format: uuid
          title: Ticket Id
          type: string
        subject:
          title: Subject
          type: string
        ticket_created_at:
          format: date-time
          title: Ticket Created At
          type: string
        thread_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Thread Id
        agent_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Agent Id
        agent_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Name
        category:
          title: Category
          type: string
        customer_request:
          title: Customer Request
          type: string
        resolution:
          title: Resolution
          type: string
        explanation:
          title: Explanation
          type: string
        missing:
          title: Missing
          type: string
        evidence:
          title: Evidence
          type: string
        confidence:
          title: Confidence
          type: number
      required:
        - ticket_id
        - subject
        - ticket_created_at
        - thread_id
        - agent_id
        - agent_name
        - category
        - customer_request
        - resolution
        - explanation
        - missing
        - evidence
        - confidence
      title: AutonomyGapTicketSchema
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

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