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

# Editar um pipeline

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

## Request

- Base URL: `https://subdomain.kommo.com`
- URL: `https://subdomain.kommo.com/api/v4/leads/pipelines/{id}`
- Auth: OAuth 2

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.dev/kommo/apis/referencias-de-api-da-kommo.md) - [All operations](https://skmtc.dev/kommo/apis/referencias-de-api-da-kommo/llms.txt) - [OpenAPI document](https://skmtc.dev/kommo/apis/referencias-de-api-da-kommo/revisions/55101699dddb?raw)
