ghl_opportunity_update_pipeline
Updates an existing sales pipeline, replacing its stages while retaining stages by ID; opportunities in removed stages migrate to the lowest remaining stage.
Instructions
Update Pipeline
Updates an existing pipeline. The stages array is a full replacement — include the id field on existing stages to retain them, or omit it to create a new stage. You cannot remove all stages at once. Any opportunities in removed stages are automatically migrated to the lowest-position remaining stage. Pipeline and stage names must remain unique (case-insensitive) within the location. Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-709536/75a21483123abd7
Endpoint: PUT /opportunities/pipelines/{pipelineId} (Version header: v3; source: v3/opportunities-v3.json)
OAuth scopes: pipelines.write
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body (schema carried verbatim from the official OpenAPI spec). | |
| pipelineId | Yes | The unique identifier of the pipeline |