Uploads a file.
You can use this endpoint to upload your local file and then use the file_key
you obtained to create a data source through the Create data source endpoint.
Only files with the following extensions are supported: .csv, .tsv, .md, .mdx, .json, .txt, .pdf, .pptx, .ppt, .doc, .docx, .xls, or .xlsx.
For optimal upload efficiency, we recommend using this endpoint for files smaller than 1 MB. For files larger than 1 MB, please initiate a multipart upload task.
Example request:
Example response:
The trace ID you set in your system to trace this request. It can be up to 128 characters in length. If the request fails, you can provide it to the Powerdrill team to help with troubleshooting.
The response is of type object
.