POST
/
update
curl --location 'https://document-query.pyqai.com/update' \
--header 'Authorization: ExampleToken' \
--form 'account_id="1"' \
--form 'index_name="Example New Index Name"' \
--form 'document_source="Example 1"' \
--form 'input_sequence=@"example_file_path.txt"'
{
  "response" : "successfully updated document."
}

Form Data

input_sequence
file
required
This is the document you want to update. Currently supported file types are md, pdf, and txt.
document_source
string
required
This is the name of the document you wish to update.
account_id
int
required
This is your account ID.
index_name
string
This is the name of the index that contains the document you wish to update. This parameter is optional - if left blank will use auto indexing.

Headers

Authorization
string
required
This is your API token associated with your account.

Response

response
string
Indicates whether the update document call was successful.
curl --location 'https://document-query.pyqai.com/update' \
--header 'Authorization: ExampleToken' \
--form 'account_id="1"' \
--form 'index_name="Example New Index Name"' \
--form 'document_source="Example 1"' \
--form 'input_sequence=@"example_file_path.txt"'
{
  "response" : "successfully updated document."
}