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

# Review a Pipeline's Stages

> Checks a proposed stage list, in the body `update_pipeline_stages` takes, without changing anything. Active stages that are new or whose name or description changed get a description check with a suggested description and stage group. When active stages were added, removed, moved or redefined and automatic stage updates are on, the order is checked and a corrected order may be suggested. Requires an admin.



## OpenAPI

````yaml https://api.monaco.com/openapi.json post /v1/pipelines/{pipeline_id}/stages/review
openapi: 3.2.1
info:
  title: Monaco Public API
  description: Public API for Monaco
  version: 1.0.0
servers:
  - url: https://api.monaco.com
security: []
paths:
  /v1/pipelines/{pipeline_id}/stages/review:
    post:
      tags:
        - Pipelines
      summary: Review a Pipeline's Stages
      description: >-
        Checks a proposed stage list, in the body `update_pipeline_stages`
        takes, without changing anything. Active stages that are new or whose
        name or description changed get a description check with a suggested
        description and stage group. When active stages were added, removed,
        moved or redefined and automatic stage updates are on, the order is
        checked and a corrected order may be suggested. Requires an admin.
      operationId: review_pipeline_stages
      parameters:
        - name: pipeline_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Pipeline Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePipelineStagesRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PublicItemResponse_PipelineStagesReviewResponse_
        4XX:
          description: Client error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorResponse'
components:
  schemas:
    UpdatePipelineStagesRequest:
      properties:
        config_version:
          type: string
          title: Config Version
          description: '`config_version` of the pipeline as last read'
          examples:
            - 3f2a9c1b7d4e8a60
        stages:
          items:
            $ref: '#/components/schemas/PipelineStageInput'
          type: array
          maxItems: 50
          minItems: 1
          title: Stages
          description: >-
            Every stage the pipeline keeps, in order. The pipeline needs at
            least one active stage, one `won` and one `lost` closed stage.
        deletions:
          items:
            $ref: '#/components/schemas/PipelineStageDeletion'
          type: array
          maxItems: 50
          title: Deletions
          description: Existing stages to delete
      additionalProperties: false
      type: object
      required:
        - config_version
        - stages
      title: UpdatePipelineStagesRequest
      description: >-
        The pipeline's complete stage list.


        Stages are ordered by stage group, then by their order in `stages`.
        Every existing

        stage must appear in `stages` or in `deletions`.
    PublicItemResponse_PipelineStagesReviewResponse_:
      properties:
        data:
          $ref: '#/components/schemas/PipelineStagesReviewResponse'
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      type: object
      required:
        - data
      title: PublicItemResponse[PipelineStagesReviewResponse]
    PublicErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: PublicErrorResponse
    PipelineStageInput:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
          description: ID of an existing stage to keep. Omit to create a new stage.
        key:
          anyOf:
            - type: string
              maxLength: 64
              minLength: 1
            - type: 'null'
          title: Key
          description: >-
            Key of a new stage, derived from `display_name` when omitted.
            Ignored for existing stages, whose key never changes.
          examples:
            - security_review
        display_name:
          type: string
          maxLength: 128
          minLength: 1
          title: Display Name
          description: Display name, unique within the pipeline ignoring case
          examples:
            - Security Review
        description:
          anyOf:
            - type: string
              maxLength: 8192
            - type: 'null'
          title: Description
          description: >-
            What the stage means; Monaco's AI reads it to place deals in the
            stage. When omitted, an existing stage keeps its description and a
            new one has none.
        stage_group:
          $ref: '#/components/schemas/StageGroup'
          description: Commercial phase of the stage
        outcome:
          anyOf:
            - $ref: '#/components/schemas/StageOutcome'
            - type: 'null'
          description: Required on `closed` stages and not allowed on others
        color:
          anyOf:
            - $ref: '#/components/schemas/DisplayColorEnum'
            - type: 'null'
          description: >-
            Display color. When omitted, an existing stage keeps its color and a
            new one is gray.
        allow_automatic_entry:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Allow Automatic Entry
          description: >-
            Whether automatic stage updates may move deals into this stage. Only
            `closed` stages can be set to false; other stages always allow it.
            When omitted, an existing closed stage keeps its setting and a new
            one allows it.
        allow_automatic_exit:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Allow Automatic Exit
          description: >-
            Whether automatic stage updates may move deals out of this stage.
            Only `closed` stages can be set to false; other stages always allow
            it. When omitted, an existing closed stage keeps its setting and a
            new one allows it.
      additionalProperties: false
      type: object
      required:
        - display_name
        - stage_group
      title: PipelineStageInput
      description: One stage of the desired stage list.
    PipelineStageDeletion:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: ID of the stage to delete
        remap_to_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Remap To Key
          description: >-
            Key of a stage in `stages` that receives this stage's opportunities
            and stage triggers. Required when the stage has either; at most 100
            opportunities can be moved.
          examples:
            - negotiation
      additionalProperties: false
      type: object
      required:
        - id
      title: PipelineStageDeletion
    PipelineStagesReviewResponse:
      properties:
        config_version:
          type: string
          title: Config Version
          description: >-
            `config_version` of the pipeline the proposed stages were compared
            with
        stage_guidance:
          items:
            $ref: '#/components/schemas/PipelineStageGuidanceReview'
          type: array
          title: Stage Guidance
          description: >-
            Description checks for active stages that are new or whose name or
            description changed, in request order
        ordering:
          $ref: '#/components/schemas/PipelineStageOrderingReview'
          description: Order check of the active stages
      type: object
      required:
        - config_version
        - stage_guidance
        - ordering
      title: PipelineStagesReviewResponse
    ResponseMeta:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
          description: Server timestamp of the response
      type: object
      title: ResponseMeta
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Machine-readable error code
          examples:
            - not_found
        message:
          type: string
          title: Message
          description: Human-readable error message
          examples:
            - Resource not found
        data:
          anyOf:
            - additionalProperties:
                anyOf:
                  - type: string
                  - type: integer
              type: object
            - type: 'null'
          title: Data
          description: >-
            `field` names the request field to fix, as written in the request
            (for example `name` or `steps[2].message`), and is left out when no
            request field applies. Details for some codes: `field_too_long`
            carries `field`, `limit` and `actual`, plus `unit` (`items` or
            `bytes`) when the limit isn't in characters, or only `field` for a
            JSON or encrypted field; `too_many_custom_fields` carries
            `entity_type` and `limit`. Some field-specific errors include
            `field`, the public name of the field to fix
      type: object
      required:
        - code
        - message
      title: ErrorDetail
    StageGroup:
      type: string
      enum:
        - pre_pipeline
        - opportunity_validation
        - solution_fit
        - commercial_commitment
        - closed
      title: StageGroup
      description: >-
        System-owned, fixed, ordered taxonomy of commercial questions.


        Customers define stages within groups; the taxonomy itself never varies
        by org or

        sales motion. Member order is the pipeline order.
    StageOutcome:
      type: string
      enum:
        - won
        - lost
        - disqualified
      title: StageOutcome
      description: How a closed opportunity ended; set exactly on closed-group stages.
    DisplayColorEnum:
      type: string
      enum:
        - green
        - blue
        - red
        - yellow
        - purple
        - berry
        - peach
        - gray
      title: DisplayColorEnum
    PipelineStageGuidanceReview:
      properties:
        index:
          type: integer
          title: Index
          description: Position of the stage in the request's `stages`
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
          description: ID of the stage; null for a new stage
        display_name:
          type: string
          title: Display Name
          description: Display name of the stage, as sent
        result:
          type: string
          enum:
            - recommendation
            - no_change_needed
            - more_information_needed
            - check_failed
          title: Result
          description: >-
            `recommendation`: a clearer description is proposed.
            `no_change_needed`: the description is clear.
            `more_information_needed`: the stage's meaning can't be inferred
            from its name and description. `check_failed`: the check didn't run.
        proposed_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Proposed Description
          description: Suggested replacement description; set only on `recommendation`
        rationale:
          anyOf:
            - type: string
            - type: 'null'
          title: Rationale
          description: Why the description was judged this way; null on `check_failed`
        suggested_stage_group:
          anyOf:
            - $ref: '#/components/schemas/StageGroup'
            - type: 'null'
          description: >-
            Stage group that best fits the stage's meaning; null on
            `more_information_needed` and `check_failed`
      type: object
      required:
        - index
        - id
        - display_name
        - result
        - proposed_description
        - rationale
        - suggested_stage_group
      title: PipelineStageGuidanceReview
    PipelineStageOrderingReview:
      properties:
        result:
          type: string
          enum:
            - not_needed
            - no_change_needed
            - reorder_suggested
            - check_failed
          title: Result
          description: >-
            `not_needed`: active stages weren't added, removed, moved or
            redefined, or automatic stage updates are off. `no_change_needed`:
            the order fits the stage definitions. `reorder_suggested`: see
            `suggested_order`. `check_failed`: the check didn't run.
        explanation:
          anyOf:
            - type: string
            - type: 'null'
          title: Explanation
          description: Summary of the suggested reorder; set only on `reorder_suggested`
        misplaced_stages:
          items:
            $ref: '#/components/schemas/PipelineStageMisplaced'
          type: array
          title: Misplaced Stages
          description: Stages whose position conflicts with their meaning
        suggested_order:
          items:
            $ref: '#/components/schemas/PipelineStageOrderPosition'
          type: array
          title: Suggested Order
          description: >-
            Every stage in `stages`, in the suggested order, with the stage
            group that keeps that order. Empty unless `reorder_suggested`.
      type: object
      required:
        - result
        - explanation
        - misplaced_stages
        - suggested_order
      title: PipelineStageOrderingReview
    PipelineStageMisplaced:
      properties:
        index:
          type: integer
          title: Index
          description: Position of the stage in the request's `stages`
        display_name:
          type: string
          title: Display Name
          description: Display name of the stage
        explanation:
          type: string
          title: Explanation
          description: Why the stage's position conflicts with its meaning
      type: object
      required:
        - index
        - display_name
        - explanation
      title: PipelineStageMisplaced
    PipelineStageOrderPosition:
      properties:
        index:
          type: integer
          title: Index
          description: Position of the stage in the request's `stages`
        display_name:
          type: string
          title: Display Name
          description: Display name of the stage
        stage_group:
          $ref: '#/components/schemas/StageGroup'
          description: Stage group that keeps the stage in this order
      type: object
      required:
        - index
        - display_name
        - stage_group
      title: PipelineStageOrderPosition

````

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