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

# Update Pipeline Stage

> Update a stage's name, order, or closed flags. Reordering shuffles peer stages within the same pipeline. Cannot mark a stage as both closed-won and closed-lost.



## OpenAPI

````yaml PATCH /crm/pipeline-stages/{stage_id}/
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /crm/pipeline-stages/{stage_id}/:
    patch:
      tags:
        - crm
      summary: Update Pipeline Stage
      description: >-
        Update a stage's name, order, or closed flags. Reordering shuffles peer
        stages within the same pipeline. Cannot mark a stage as both closed-won
        and closed-lost.
      operationId: crm_pipeline_stages_partial_update
      parameters:
        - in: path
          name: stage_id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedPipelineStageUpdateRequestRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedPipelineStageUpdateRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedPipelineStageUpdateRequestRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: Stage updated.
        '400':
          description: Empty name, name conflict, invalid order, or both closed flags set.
        '404':
          description: Stage not found.
      security:
        - jwtAuth: []
        - {}
components:
  schemas:
    PatchedPipelineStageUpdateRequestRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
        stage_order:
          type: integer
        is_closed_won:
          type: boolean
        is_closed_lost:
          type: boolean
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````