---
title: "Update a knowledge source and rebuild its chunks"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › AI Knowledge Studio

`PUT /api/knowledge-studio/sources/{sourceId}`

## Path parameters

- `sourceId` (`put/api/knowledge-studio/sources/sourceId.path.sourceId`; string, required)
  - format `uuid`

## Request body

_Required._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url 'https://api.channelautomation.com/api/knowledge-studio/sources/<sourceId>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/knowledge-studio/sources/<sourceId>';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/knowledge-studio/sources/<sourceId>"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Source updated


Source: https://developer.channelautomations.com/api/put-api-knowledge-studio-sources-source-id/index.md
