---
title: "PATCH /api/v4/leads/pipelines"
method: PATCH
path: "/api/v4/leads/pipelines"
---

# PATCH /api/v4/leads/pipelines

`PATCH /api/v4/leads/pipelines`

Update pipelines (batch).

## Request body

- PipelineUpdateItem[]
  - `id` integer, required
  - `name` string
  - `sort` integer
  - `is_main` boolean
  - `is_unsorted_on` boolean
  - `is_archive` boolean
  - `request_id` string

## Response `200`

The request has succeeded.

- union
  - PipelineUpdateResponse
    - `_links` object
    - `_embedded` object
      - `pipelines` PipelineUpdatedResult[]
        - `id` integer
        - `updated_at` integer
        - `request_id` string
        - `_links` object
  - Problem
    - `title` string
    - `status` integer
    - `detail` string
    - `type` string

---

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