---
title: "PATCH /api/v4/sources"
method: PATCH
path: "/api/v4/sources"
---

# PATCH /api/v4/sources

`PATCH /api/v4/sources`

Update sources (batch).

## Request body

- SourceUpdateItem[]
  - `id` integer, required
  - `name` string
  - `pipeline_id` integer, nullable
  - `external_id` string
  - `default` boolean
  - `origin_code` string, nullable
  - `services` union
    - object[]
    - string[]
  - `request_id` string

## Response `200`

The request has succeeded.

- union
  - SourceUpdateResponse
    - `_total_items` integer
    - `_links` object
    - `_embedded` object
      - `sources` SourceUpdateResult[]
        - `id` integer
        - `name` string
        - `pipeline_id` integer, nullable
        - `external_id` union
          - string
          - integer
          - boolean
        - `default` boolean
        - `origin_code` string, nullable
        - `services` union
          - object[]
          - 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)
