---
title: "PATCH /sources/{sourceId}"
method: PATCH
path: "/sources/{sourceId}"
tags: ["source"]
---

# PATCH /sources/{sourceId}

`PATCH /sources/{sourceId}`

## Request

- Base URL: `https://headless.dataddo.com/customer-api/v1`
- URL: `https://headless.dataddo.com/customer-api/v1/sources/{sourceId}`
- Auth: none declared

Partial updates the source basic information

## Path parameters

- `sourceId` string, required

## Request body

- OldPatchGroupedSourceInput
  - `label` string, nullable
  - `description` string, nullable
  - `status` 'live' | 'inactive' | 'null', nullable
  - `is_locked` boolean, nullable

## Response `200`

Partial updates the source basic information

- Source
  - `descriptors` Descriptor[]
    - `key` 'EMPTY' | 'DATABASE' | 'TABLE' | 'FILE' | 'FORMAT' | 'PATH' | 'WRITE_MODE' | 'SPREADSHEET_ID' | 'SPREADSHEET' | 'SHEET' | 'DATASET' | 'PROJECT' | 'SCHEMA' | 'TOPIC' | 'ACCOUNT' | 'TYPE' | 'REPORT' | 'GRANULARITY' | 'CHANNEL' | 'PROPERTY' | 'BUCKET'
    - `value` string: descriptor value
  - `external_id` string, nullable: The id of the document in external systems. By setting external_id you can link document with external systems id.
  - `is_locked` boolean: You may mark the document as locked to prevent accidental changes. When locked, the document cannot be modified or deleted.
  - `label` string
  - `description` string
  - `type` string
  - `customer_id` string
  - `created_at` integer
  - `updated_at` integer

---

[API](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api.md) · [All operations](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api/revisions/dcfa2345bd10?raw)
