Upload Document Content
POST/api/documents/:document_id/content
Add a document from specific content.
Request
Path Parameters
document_id Document Idrequired
The collection to add the document to.
- multipart/form-data
Body
required
content binaryrequired
The document content.
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- MOD1
- IngestState
- MOD1
id
object
anyOf
integer
collection Collectionrequired
extracted_text
object
anyOf
string
url
object
anyOf
string
ingest_state
object
anyOf
string
ingest_error
object
anyOf
string
{
"id": 0,
"collection": "string",
"extracted_text": "string",
"url": "string",
"ingest_state": "pending",
"ingest_error": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Messagerequired
type Error Typerequired
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...