Appearance
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
Requiredinteger
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
{
}