---
title: "Update a source"
method: PUT
path: "/api/v1/project/{projectid}/sources/{id}"
tags: ["Sources"]
---

# Update a source

`PUT /api/v1/project/{projectid}/sources/{id}`

Update the configuration details of an existing source.

## Path parameters

- `projectid` string, required
- `id` integer, required

## Request body

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

## Response `200`

OK

## Other responses

- `400` — failed to validate request
- `401` — unauthorized
- `404` — source not found
- `413` — payload too large
- `500` — failed to update source

## Changes

- **2026-07-17** `f1bcf21b1556` — 1 info
  - added the non-success response with the status `413`
- **2026-02-07** `8881928f860b` — 1 info
  - removed the non-success response with the status `413`

[Change history](https://skmtc.dev/datazip-inc/apis/olake-ui-api/changes/api/v1/project/:projectid/sources/:id/put.md)

---

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