Skip to content

Add Url Source

POST
/api/v1/tenants/{tenant_id}/knowledge-sources/url

Create a URL-type knowledge source and enqueue the sync task.

The Celery task is imported lazily so tests can patch
src.worker.tasks_chatbot.sync_knowledge_source before calling the
endpoint.

Authorizations

HTTPBearer
Type
HTTP (bearer)

Parameters

Path Parameters

tenant_id*
Type
integer
Required

Request Body

application/json
JSON
{
  
"source_value": "string",
  
"refresh_schedule": "manual"
}

Responses

Successful Response

application/json
JSON
{
  
"id": 0,
  
"source_type": "string",
  
"source_value": "string",
  
"refresh_schedule": "string",
  
"last_synced_at": "string",
  
"last_error": "string",
  
"enabled": true,
  
"chunk_count": 0
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

XC AI Content Automation