---
title: "Update a deal pipeline"
method: PATCH
path: "/pipelines/{id}"
tags: ["Reference Data"]
---

# Update a deal pipeline

`PATCH /pipelines/{id}`

Updates a pipeline's name, icon, or active state. Only provided fields are changed. To add or edit stages, use the stage endpoints.

## Path parameters

- `id` string, required

## Request body

- PipelineUpdateInput
  - `name` string — Pipeline name
  - `icon` string — Tabler icon name for the pipeline
  - `isActive` boolean — Whether the pipeline is active

## Response `200`

OK

- Pipeline
  - `id` string, required — Pipeline ID (dpl_ prefix)
  - `name` string, required — Pipeline name
  - `stages` PipelineStage[], required
    - `id` string, required — Pipeline stage ID (dps_ prefix)
    - `name` string, required — Stage name
    - `position` number, required — Display order in the pipeline
    - `probability` number, required — Win probability percentage
    - `type` 'ACTIVE' | 'WON' | 'LOST', required — Stage type. Moving a deal to a WON or LOST stage updates deal status.

## Other responses

- `400` — Validation error or bad request
- `401` — Missing or invalid API key
- `403` — Insufficient permission
- `404` — Resource not found
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/heffl/apis/heffl-api-v2-beta.md) · [All operations](https://skmtc.net/heffl/apis/heffl-api-v2-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/heffl/heffl-api-v2-beta/versions/27006cfef4d8/schema)
