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

# PUT /sources/{sourceId}

`PUT /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

Updates the source basic information

## Path parameters

- `sourceId` string, required

## Request body

- PutSourceInput
  - `label` string
  - `description` string
  - `columns` SourceColumnDefinitionInput[]
    - `column_id` string
    - `label` string
    - `type` 'string' | 'date' | 'integer' | 'float' | 'boolean' | 'json' | 'timestamp_ms' | 'decimal' | 'timestamp_tz'

## Response `200`

Updates the source basic information

- SourceResource
  - `id` string
  - `label` string
  - `description` string
  - `type` string
  - `created_at` integer: UNIX timestamp in seconds.
  - `updated_at` integer: UNIX timestamp in seconds.
  - `external_id` string, nullable
  - `descriptors` DescriptorResource[]
    - `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
  - `is_locked` boolean
  - `future_id` string
  - `legacy_id` string

---

[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)
