Appearance
Register Uploaded File
POST
/api/v1/tenants/{tenant_id}/knowledge-sources/upload
Register a file already PUT to S3 and enqueue the sync task.
The S3 key must live under this tenant's upload prefix
(chatbot/uploads/{tenant.id}/...) — callers can't register files
belonging to other tenants.
Authorizations
HTTPBearer
Type
HTTP (bearer)
Parameters
Path Parameters
tenant_id*
Type
Requiredinteger
Request Body
application/json
JSON "s3_key": "string", "original_filename": "string"
{
}
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
{
}