> ## 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.

# Reorder stages in a pipeline



## OpenAPI

````yaml /generated/specs/sales.json put /api/v1/pipelines/{id}/stages/reorder
openapi: 3.0.0
info:
  title: Raul API - Ventas
  description: >-
    Cotizaciones, pipeline, outreach comercial, equipos cotizables y ventas de
    equipamiento.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/pipelines/{id}/stages/reorder:
    put:
      tags:
        - pipelines
      summary: Reorder stages in a pipeline
      operationId: PipelineController_reorderStages
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReorderStagesDto'
      responses:
        '200':
          description: Stages reordered
        '403':
          description: Requiere rol admin
        '404':
          description: Pipeline not found
components:
  schemas:
    ReorderStagesDto:
      type: object
      properties:
        stage_ids:
          description: Ordered array of stage IDs
          type: array
          items:
            type: string
      required:
        - stage_ids

````

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