post
Overview
This endpoint is used for adding new non-tabular files to a file index table. Files can only be added to tables on an unreleased version of a dataset — if the dataset has previously been released, make sure you are referencing the next
version of the dataset in the dataset reference.
When uploading files through this endpoint, you must first upload the file contents as temporary uploads, via the Tables.createTempUploads endpoint. You can then pass batches of the corresponding tempUpload ids to this endpoint to add files in bulk, which is significantly more performant than adding files one at a time.
There's a lot of complexity in uploading data! It's highly recommended to use one of the client libraries to transfer data to Redivis. These libraries take care of the complexities automatically and optimize the upload mechanism and parallelization based on the size of your file, while also retrying on intermittent network errors.
HTTP Request
This endpoint extends the general API structure
Path parameters
Parameter | |
---|---|
tableReference | A qualified reference to the table. See referencing resources for more information. |
Request body
Property name | Type | Description |
---|---|---|
files | array(object) | An array of file objects, which each contain a property |
files[].name | string | The file name. |
files[].tempUploadId | string | The id returned by the table |
Authorization
Edit access to the dataset is required. Your access token must have the following scope:
data.edit
Learn more about authorization.
Response body
If successful, returns with a 201 status code and the following response body:
Last updated