post https://api.contextual.ai/v1/datastores//documents
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 or HTML file.