Skip to main content
PipelinesVersion: v3

Create Pipeline

POST/opportunities/pipelines

Creates a new pipeline with at least one stage for a given location. Pipeline names must be unique per location (case-insensitive), and stage names must be unique within the pipeline. To set win probabilities by hand, give every stage a stageWinProbability (0–100); if any stage is missing a value, all are dropped and forecasting uses automatic probabilities based on stage position. Stages are written only through the pipeline's stages array; there are no stage-level endpoints.

Authorizations

Authorizationstringheaderrequired

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

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

Request​

Headers

Versionstringrequired

API Version. Send v3.

Available optionsv3
Example:v3

Body

namestringrequired

Name of the pipeline

Example:pipeline
stagesobject[]required

List of stages belonging to this pipeline. Each stage needs a name and a unique position.

Example
[
  {
    "name": "stage 1",
    "position": 1,
    "showInFunnel": true
  }
]
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
locationIdstringrequired

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

Example:ve9EPM428h8vShlRW1KT
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