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

# Editar un pipeline

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

Este método permite editar el pipeline en la cuenta.

## Path parameters

- `id` integer, required

## Headers

- `Content-Type` string

## Request body

- object
  - `name` string — Nombre del pipeline
  - `sort` integer — Define el orden se visualización del pipeline en la lista de pipelines
  - `is_main` boolean — Define si el pipeline es principal para la cuenta
  - `is_unsorted_on` boolean — Define si los leads entrantes están habilitados.

## 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.md) · [All operations](https://skmtc.net/kommo/apis/kommo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/kommo-api/versions/e291c0b2038d/schema)
