Skip to content

Update a contact pipeline

POST/v1/contacts/pipelines/{id}

Changes only the properties sent. A stage entry without an ID creates a new stage on each request. Use the returned IDs on subsequent updates to keep those stages and their record assignments. If the list omits an existing stage, the update returns 409 crm.pipeline.stage_removal_unconfirmed and lists the stages it would delete. Repeat with force=true to confirm. With dryRun=true, runs every check and returns { affectedRecordCount }, the records whose stage the update would clear, without changing anything. A dry run needs no force.

A name, slug or stage ID that another pipeline on the object type has is refused with 409 and a code of crm.pipeline.name_taken, crm.pipeline.slug_taken or crm.pipeline.stage_id_taken. Stage IDs on an object type must also be distinct after ignoring case, hyphens, and underscores. A new collision with an existing stage returns 409 crm.pipeline.stage_id_taken; one between two new stages in the request returns 422. A stage ID that newly conflicts with another stage’s label, in either its stored or published spelling, is refused with 409 crm.pipeline.stage_id_taken. A name or stage ID can be taken once the other pipeline gives it up, so the request can be sent again then. A workspace without multiple pipelines is refused with 403 crm.pipeline.configuration_disabled.

Requires a workspace owner or admin.

Required scopes: contacts:read and config:update

Rate limit category: Write

Path ParametersExpand Collapse
id: string

The pipeline, by its id (pd_…) or its slug (e.g. $default-pipeline).

Query ParametersExpand Collapse
dryRun: optional boolean

Check the request and count the records it would clear, without changing anything. Defaults to false.

force: optional boolean

Confirm deletion of existing stages omitted from the stage list. Not needed with dryRun=true.

Body ParametersJSONExpand Collapse
description: optional string

Description of the pipeline. Send null to clear it; an empty or whitespace-only string returns 422.

forecastEnabled: optional boolean

Whether stages carry a forecast. Turning it off clears every stage forecast.

name: optional string
maxLength255
stages: optional array of object { id, category, color, 4 more }

The full stage list, in display order. Stages are matched by id. Omitted properties on a retained stage are preserved. Omitting an existing stage requires force=true to delete it and clear it from records.

id: optional string

Omit the ID to create a new stage with a random UUIDv4. To keep or edit a stage, send its published ID. A caller-chosen ID starts with opt_ followed by either a UUID in any letter case or groups of lowercase letters and digits separated by single hyphens or underscores. The ID must be unique on the object type, ignoring case, hyphens, and underscores.

category: optional "ACTIVE" or "COMPLETED"

Lifecycle group of the stage, in-progress (ACTIVE) or done (COMPLETED).

One of the following:
"ACTIVE"
"COMPLETED"
color: optional "RED" or "ORANGE" or "YELLOW" or 7 more

Color the stage is displayed in.

One of the following:
"RED"
"ORANGE"
"YELLOW"
"LIME"
"GREEN"
"BLUE"
"INDIGO"
"PURPLE"
"COPPER"
"GRAY"
description: optional string

Description of the stage. Null clears it.

forecastPercentage: optional number

Forecast weighting from 0 to 100. Only allowed when forecastEnabled. Null clears it.

minimum0
maximum100
icon: optional "BACKLOG" or "QUALIFICATION" or "DISCOVERY" or 4 more

Icon the stage is displayed with.

One of the following:
"BACKLOG"
"QUALIFICATION"
"DISCOVERY"
"ACTIVE"
"NEGOTIATION"
"CLOSED_WON"
"CLOSED_LOST"
label: optional string

Display name of the stage.

minLength1
maxLength255
ReturnsExpand Collapse
ContactUpdatePipelineResponse = object { id, description, forecastEnabled, 3 more } or object { affectedRecordCount }
One of the following:
object { id, description, forecastEnabled, 3 more }
id: string

Unique identifier of the pipeline.

description: string

Description of the pipeline, or null.

forecastEnabled: boolean

Whether stages carry a forecastPercentage. Turning it off clears every stage forecast.

name: string

Display name of the pipeline.

slug: string

Key derived from the name when the pipeline was created, unique on the object type. Pipelines provisioned by Lightfield use a $ prefix (e.g. $default-pipeline).

stages: array of object { id, label, category, 4 more }

Stages in display order. Each id is the option ID records hold in $stage.

id: string

Unique identifier of the select option.

label: string

Human-readable display name of the option.

category: optional "ACTIVE" or "COMPLETED"

Lifecycle group of the option, in-progress (ACTIVE) or done (COMPLETED), ACTIVE when none was set. Absent on selects whose options are not grouped.

One of the following:
"ACTIVE"
"COMPLETED"
color: optional "RED" or "ORANGE" or "YELLOW" or 7 more

Color the option is displayed in, GRAY when none was chosen. Absent on selects whose options take no color.

One of the following:
"RED"
"ORANGE"
"YELLOW"
"LIME"
"GREEN"
"BLUE"
"INDIGO"
"PURPLE"
"COPPER"
"GRAY"
description: optional string

Description of the option, or null.

forecastPercentage: optional number

Forecast weighting of the option from 0 to 100, or null when none is set. Absent on selects whose options take no forecast.

icon: optional "BACKLOG" or "QUALIFICATION" or "DISCOVERY" or 4 more

Icon the option is displayed with, BACKLOG when none was chosen. Present only on $stage.

One of the following:
"BACKLOG"
"QUALIFICATION"
"DISCOVERY"
"ACTIVE"
"NEGOTIATION"
"CLOSED_WON"
"CLOSED_LOST"
AffectedRecordCount object { affectedRecordCount }
affectedRecordCount: number

Number of records whose stage is, or would be, cleared.

minimum0
maximum9007199254740991

Update a contact pipeline

curl https://api.lightfield.app/v1/contacts/pipelines/$ID \
    -H 'Content-Type: application/json' \
    -H 'Lightfield-Version: 2026-03-01' \
    -H "Authorization: Bearer $API_KEY" \
    -d '{}'
{
  "id": "id",
  "description": "description",
  "forecastEnabled": true,
  "name": "name",
  "slug": "slug",
  "stages": [
    {
      "id": "id",
      "label": "label",
      "category": "ACTIVE",
      "color": "RED",
      "description": "description",
      "forecastPercentage": 0,
      "icon": "BACKLOG"
    }
  ]
}
Returns Examples
{
  "id": "id",
  "description": "description",
  "forecastEnabled": true,
  "name": "name",
  "slug": "slug",
  "stages": [
    {
      "id": "id",
      "label": "label",
      "category": "ACTIVE",
      "color": "RED",
      "description": "description",
      "forecastPercentage": 0,
      "icon": "BACKLOG"
    }
  ]
}