## Update a contact pipeline

**post** `/v1/contacts/pipelines/{id}`

> [!WARNING]
This endpoint is in beta and isn't available to every workspace yet. Its parameters and response schemas may change, including breaking changes.

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](/using-the-api/scopes/):** `contacts:read` and `config:update`

**[Rate limit category](/using-the-api/rate-limits/):** Write

### Path Parameters

- `id: string`

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

### Query Parameters

- `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 Parameters

- `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`

- `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`).

    - `"ACTIVE"`

    - `"COMPLETED"`

  - `color: optional "RED" or "ORANGE" or "YELLOW" or 7 more`

    Color the stage is displayed in.

    - `"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.

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

    Icon the stage is displayed with.

    - `"BACKLOG"`

    - `"QUALIFICATION"`

    - `"DISCOVERY"`

    - `"ACTIVE"`

    - `"NEGOTIATION"`

    - `"CLOSED_WON"`

    - `"CLOSED_LOST"`

  - `label: optional string`

    Display name of the stage.

### Returns

- `ContactUpdatePipelineResponse = object { id, description, forecastEnabled, 3 more }  or object { affectedRecordCount }`

  - `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.

        - `"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.

        - `"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.

        - `"BACKLOG"`

        - `"QUALIFICATION"`

        - `"DISCOVERY"`

        - `"ACTIVE"`

        - `"NEGOTIATION"`

        - `"CLOSED_WON"`

        - `"CLOSED_LOST"`

  - `AffectedRecordCount object { affectedRecordCount }`

    - `affectedRecordCount: number`

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

### Example

```http
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 '{}'
```

#### Response

```json
{
  "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"
    }
  ]
}
```
