---
title: "Refresh a URL source"
method: POST
path: "/api/v1/chatbots/{id}/knowledge/sources/{sourceId}/refresh"
---

# Refresh a URL source

`POST /api/v1/chatbots/{id}/knowledge/sources/{sourceId}/refresh`

## Request

- Base URL: `https://smartwebchat.eu`
- URL: `https://smartwebchat.eu/api/v1/chatbots/{id}/knowledge/sources/{sourceId}/refresh`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `sourceId` string, required

## Headers

- `Idempotency-Key` string

## Response `202`

Refresh started; data.job

## Other responses

- `400`: Only URL sources can be refreshed
- `402`: Knowledge quota used up (knowledge_quota_exceeded) or credit insufficient (credit_insufficient)
- `404`: Source not found for this chatbot
- `409`: A request with this Idempotency-Key is still being processed. Retry after the seconds given in Retry-After (2).
- `422`: Idempotency-Key was already used with a different request body. Use a new key for a new request.
- `429`: Rate limit exceeded: 600 requests per minute per account across all /api/v1/ routes. Wait for the seconds given in Retry-After (60) and retry.

---

[API](https://skmtc.dev/smartwebchat/apis/smartwebchat-api.md) · [All operations](https://skmtc.dev/smartwebchat/apis/smartwebchat-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smartwebchat/apis/smartwebchat-api/revisions/1b052502dacb?raw)
