---
title: "Create a new source"
method: POST
path: "/api/v1/project/{projectid}/sources"
tags: ["Sources"]
---

# Create a new source

`POST /api/v1/project/{projectid}/sources`

Create a new source within a project.

## Path parameters

- `projectid` string, required

## Request body

- DtoCreateSourceRequest
  - `config` string, required
  - `name` string, required
  - `type` string, required
  - `version` string, required

## Response `200`

OK

## Other responses

- `400` — failed to validate request
- `401` — unauthorized
- `413` — payload too large
- `500` — failed to create source

---

[API](https://skmtc.net/datazip-inc/apis/olake-ui-api.md) · [All operations](https://skmtc.net/datazip-inc/apis/olake-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datazip-inc/olake-ui-api/versions/f1bcf21b1556/schema)
