Skip to main content
PipelinesVersion: v3

Update Pipeline

PUT/opportunities/pipelines/{pipelineId}

Updates an existing pipeline. Send only the fields to change; omit stages to leave the stages as they are.

Stages. When sent, stages replaces the whole list: send an existing stage with its id to keep it, leave id out to add a new stage, and leave a stage out of the array to remove it. An existing stage sent without its id counts as removed and is replaced by a new stage with a new id. At least one existing stage must remain; otherwise the request fails with PIPELINE_CANNOT_DELETE_ALL_STAGES. A stage id that matches no existing stage is treated as a new stage.

Stages are written only through the pipeline's stages array; there are no stage-level endpoints.

Removed stages. Opportunities in removed stages move to the stage with the lowest position, and workflow triggers on removed stages are removed.

Names. Pipeline names must be unique within the location and stage names unique within the pipeline (both case-insensitive; stage names are trimmed).

Win probability. A stageWinProbability (0–100) is saved only when every stage in the request has one; if any stage leaves it out, all values are dropped and forecasting uses automatic probabilities based on stage position. useOpportunityProbability lets an opportunity's own forecastProbability take precedence over its stage's.

Colors. Stage color is a #RRGGBB hex code; colorRenderMode (dot, bg-tint or none) sets how stage colors are shown.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:pipelines.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version. Send v3.

Available optionsv3
Example:v3

Path Parameters

pipelineIdstringrequired

The unique identifier of the pipeline

Example:aWdODOBVOlH1RUFKWQke

Body

namestring

Name of the pipeline

Example:pipeline
stagesobject[]

The full list of stages after the update; it replaces the current list. Keep a stage by sending its id, add one by leaving id out, and remove one by leaving it out of the array. Each stage needs a name and a unique position. Omit stages to leave the stages unchanged.

Example
[
  {
    "id": "38704eb0-6b4f-4c3e-8919-4835d51de0c8",
    "name": "Contacted",
    "position": 1
  },
  {
    "id": "a9f0c112-3b4d-4e2f-91ab-cd34ef567890",
    "name": "Qualified",
    "position": 2
  },
  {
    "name": "Proposal Sent",
    "position": 3
  }
]
showInFunnelboolean

Whether the pipeline is shown in the funnel view

Example:false
showInPieChartboolean

Whether the pipeline is shown in the pie chart view

Example:true
useOpportunityProbabilityboolean

When true, forecasting uses an opportunity's own forecastProbability when it has one, and its stage's win probability otherwise. When false or unset, the stage probability is always used.

Example:true
colorRenderModestring

How stage colors are shown: dot shows a colored dot next to each stage, bg-tint tints the stage background and none shows no color, whatever the stage color values are.

Available optionsdotbg-tintnone
Example:dot

Response

Successful response

idstring

Unique identifier of the pipeline

Example:aWdODOBVOlH1RUFKWQke
namestring

Name of the pipeline

Example:new pipeline
stagesobject[]

Stages belonging to this pipeline

Example:[]
showInFunnelboolean

Whether the pipeline is shown in the funnel view

Example:false
showInPieChartboolean

Whether the pipeline is shown in the pie chart view

Example:true
locationIdstring

Identifier of the location (sub-account) this pipeline belongs to

Example:VeMHYX28Satp2p7XVKbb
useOpportunityProbabilityboolean

When true, forecasting uses an opportunity's own forecastProbability when it has one, and its stage's win probability otherwise. When false or unset, the stage probability is always used.

Example:true
colorRenderModestring

How stage colors are shown: dot shows a colored dot next to each stage, bg-tint tints the stage background and none shows no color, whatever the stage color values are.

Available optionsdotbg-tintnone
Example:dot
positionstring

Fractional-index key used to sort pipelines. Updated when the user reorders pipelines (via drag-and-drop or the reorder modal).

Example:a0V