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

# Editar um 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 — Nome do Pipeline
  - `sort` integer — Define a ordem de exibição do pipeline na lista
  - `is_main` boolean — Define se o pipeline é principal para a conta
  - `is_unsorted_on` boolean — Define se os Leads de Entrada estão 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/referencias-de-api-da-kommo.md) · [All operations](https://skmtc.net/kommo/apis/referencias-de-api-da-kommo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/referencias-de-api-da-kommo/versions/98fdf05c2f5b/schema)
