---
title: "Edit pipeline"
method: PATCH
path: "/api/v4/leads/pipelines/{id}"
---

# Edit pipeline

`PATCH /api/v4/leads/pipelines/{id}`

This method allows editing the pipeline on the account

## Path parameters

- `id` integer, required

## Headers

- `Content-Type` string

## Request body

- object
  - `name` string — Pipeline name
  - `sort` integer — Sequence number of the pipeline in the pipeline list
  - `is_main` boolean — Defines whether the pipeline is main for the account
  - `is_unsorted_on` boolean — Defines whether Incoming Leads are enabled

## Response `200`

200

- object
  - `id` integer
  - `name` string
  - `sort` integer
  - `is_main` boolean
  - `is_unsorted_on` boolean
  - `is_archive` boolean
  - `account_id` integer
  - `request_id` string
  - `_links` object
    - `self` object
      - `href` string
  - `_embedded` object
    - `statuses` object[]
      - `id` integer
      - `name` string
      - `sort` integer
      - `is_editable` boolean
      - `pipeline_id` integer
      - `color` string
      - `type` integer
      - `account_id` integer
      - `_links` object
        - `self` object
          - `href` string

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403
- `429` — 429
- `500` — 500

---

[API](https://skmtc.net/kommo/apis/kommo-api-references.md) · [All operations](https://skmtc.net/kommo/apis/kommo-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/kommo-api-references/versions/f17af4d23c7c/schema)
