Import Text Content
Authorization
x-api-key x-api-key<token>
In: header
Request Body
application/json
knowledgeBaseId*string
The ID of the knowledge base.
Length
36 <= length <= 36title*string
Title of the composed content.
Length
1 <= length <= 256content*string
The text content to be imported.
Length
1 <= length <= 1000000Response Body
application/json
application/json
application/json
curl -X POST "https://retriever.denser.ai/api/open/v1/importTextContent" \ -H "Content-Type: application/json" \ -d '{ "knowledgeBaseId": "stringstringstringstringstringstring", "title": "string", "content": "string" }'{
"success": true,
"data": {
"id": "string",
"title": "string",
"type": "string",
"size": 0,
"status": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
}{
"success": false,
"message": "string",
"data": {},
"errorCode": "STORAGE_LIMIT_EXCEEDED"
}{
"success": false,
"message": "string",
"data": {},
"errorCode": "INPUT_VALIDATION_FAILED"
}