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

# Mover un ticket a otro pipeline con versión y recuperación de reintentos



## OpenAPI

````yaml /generated/specs/operations.json post /api/v1/tickets/{ticketId}/pipeline-attempts
openapi: 3.0.0
info:
  title: Raul API - Operaciones
  description: Suscripciones, GPS, actividades, visitas y operacion tecnica.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/tickets/{ticketId}/pipeline-attempts:
    post:
      tags:
        - Tickets
      summary: Mover un ticket a otro pipeline con versión y recuperación de reintentos
      operationId: TicketPipelineAttemptsController_execute
      parameters:
        - name: ticketId
          required: true
          in: path
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - pipeline_id
                - expected_version
              properties:
                pipeline_id:
                  type: string
                  format: uuid
                expected_version:
                  type: integer
                  minimum: 1
                  maximum: 2147483647
      responses:
        '200':
          description: 'Ticket reclasificado, sin cambios (`changed: false`) o reproducido'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveTicketToPipelineResponseDto'
        '403':
          description: Sólo el staff con acceso global reclasifica tickets
        '409':
          description: >-
            Ticket cerrado (ticket_closed), versión desactualizada
            (ticket_version_conflict) o clave reutilizada con otra intención
components:
  schemas:
    MoveTicketToPipelineResponseDto:
      type: object
      properties:
        ticket_id:
          type: string
          format: uuid
        pipeline_id:
          type: string
          format: uuid
          description: Pipeline resultante (el predeterminado si el ticket no tenía)
        state_id:
          type: number
          description: 'Etapa del ticket: la primera abierta del destino'
        version:
          type: number
          description: Versión del ticket después del movimiento
        changed:
          type: boolean
          description: '`false` si el ticket ya estaba en ese pipeline'
      required:
        - ticket_id
        - pipeline_id
        - state_id
        - version
        - changed

````

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