---
title: "Add a training example used for style and response shape"
---

> 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

`POST /api/knowledge-studio/examples`

## Request body

_Required._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/knowledge-studio/examples \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/knowledge-studio/examples';
const options = {
  method: 'POST',
  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/examples"

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

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

print(response.text)
```

## Responses

### 201

Training example created


Source: https://developer.channelautomations.com/api/post-api-knowledge-studio-examples/index.md
