---
title: "Create a data source"
method: PUT
path: "/catalog/v1/sources/{sourceKey}"
tags: ["Sources"]
---

# Create a data source

`PUT /catalog/v1/sources/{sourceKey}`

## Request

- Base URL: `https://.clinia.cloud`
- URL: `https://.clinia.cloud/catalog/v1/sources/{sourceKey}`
- Auth: API key in header `X-Clinia-API-Key`

Create a data source.

## Path parameters

- `sourceKey` string, required

## Request body

- V1DataSource
  - `key` string
  - `type` 'registry', required

## Response `201`

A successful response when the data source was created.

- V1DataSource
  - `key` string
  - `type` 'registry', required

## Other responses

- `400`: Returned when the request is malformed or invalid.
- `409`: Returned when the data source already exists.
- `413`: Returned when the payload exceeds the max content size (100kB).

---

[API](https://skmtc.dev/clinia/apis/data-catalog-api.md) - [All operations](https://skmtc.dev/clinia/apis/data-catalog-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clinia/apis/data-catalog-api/revisions/ddae6856276c?raw)
