Create a new pipeline
Create a brand-new pipeline (with its pipelineStages) for the given type. Setting isDefault: true switches the org’s default pipeline to the newly-created one.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Contact, Application Body
Pipeline display name; required and unique within the organization.
Optional human-readable summary of the pipeline's purpose.
When true, becomes the org's default pipeline for its type (the previous default loses the flag).
Legacy stage list used when pipelineStages is not provided; entries are mapped to new pipeline stages by newStage name.
Stage definitions with name, color, and position (sort order); takes precedence over stages and must be non-empty.
Response
Pipeline created
{
"_id": "66f0a0b0c0d0e0f0a0b0c0d0",
"name": "Sales pipeline",
"description": "NA sales pipeline",
"organizationId": "65a0e0e0e0e0e0e0e0e0e0e0",
"type": "Contact",
"isDefault": true,
"isActive": true,
"stages": [
{ "name": "New", "color": "#3B82F6" },
{ "name": "Qualified", "color": "#10B981" }
],
"pipelineStageIds": [
"67f0a0b0c0d0e0f0a0b0c0d0",
"67f0a0b0c0d0e0f0a0b0c0d1"
],
"pipelineStages": [
{
"_id": "67f0a0b0c0d0e0f0a0b0c0d0",
"name": "New",
"color": "#3B82F6",
"position": 0
},
{
"_id": "67f0a0b0c0d0e0f0a0b0c0d1",
"name": "Qualified",
"color": "#10B981",
"position": 1
}
],
"createdBy": "65b1f0a2c3d4e5f6a7b8c9d0",
"updatedBy": "65b1f0a2c3d4e5f6a7b8c9d0"
}