> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Change one of the AI agent's sources

PATCH`/messenger/{messengerId}/sources/{sourceId}`

Switch a source off or on (`enabled`), or change how often a web source resyncs (`resyncHours`: 0, 6, 24 or 168). Fields left out stay.

## Path Parameters

`messengerId`

numberrequired

`sourceId`

numberrequired

## Response

200

**cURL**

```bash
curl --request PATCH \
  --url 'https://api.workover.io/messenger/{messengerId}/sources/{sourceId}' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

**JavaScript**

```javascript
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({})
};

fetch('https://api.workover.io/messenger/{messengerId}/sources/{sourceId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/messenger/{messengerId}/sources/{sourceId}"

payload = {}

response = requests.patch(url, json=payload)

print(response.text)
```
