> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatnorris.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Re-sync source

> Reprocess a knowledge base source to update its content.

# Re-sync source

Queues a source again so it's reprocessed. Useful to update the content when the source web page changed, or to retry a source that ended up in `error` status.

```http theme={null}
POST https://app.chatnorris.ai/api/v2/chatbots/{chatbot_id}/knowledge/{source_id}
Authorization: Bearer <your_api_key>
```

**Required scope:** `chatbots:write`

> [!NOTE]
>
> This endpoint has no body. It's an action (re-queue) on an existing resource.

***

## Path parameters

| Parameter | Type | Description |
| - | - | - |
| `chatbot_id` | string | Agent ID |
| `source_id` | string | ID of the source to re-sync |

***

## Response `200 OK`

```json theme={null}
{
  "status": "success",
  "data": {
    "resyncing": true
  }
}
```

Processing happens in the background. Check the status with [List sources](https://docs.chatnorris.ai/en/api-referencia/knowledge/listar.md) until `status` is `ready`.

***

## Common errors

| Code | Description |
| - | - |
| `NOT_FOUND` | The source doesn't exist or doesn't belong to the specified agent |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.