/datastores/{id}/documents
Ingest Document
Ingest a document into a given Datastore
.
Ingestion is an asynchronous task. Returns a document id
which can be used to track the status of the ingestion job through calls to the GET /datastores/{datastore_id}/documents/{document_id}/metadata
API.
This id
can also be used to delete the document through the DELETE /datastores/{datastore_id}/documents/{document_id}
API.
file
must be a PDF, HTML, DOC(X) or PPT(X) file. The filename must end with one of the following extensions: .pdf
, .html
, .htm
, .mhtml
, .doc
, .docx
, .ppt
, .pptx
.
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Datastore ID of the datastore in which to ingest the document
Body
multipart/form-data
Response
200
application/json
Successful Response
Response body from POST /data/documents