Skip to navigation

Upload file to batch

Upload a file to a batch or update the contents of a previously uploaded file in a batch.

Files can be uploaded one at a time and the suggested max size for each file is 10 MB. For larger files, see Multipart file upload.
If you upload a password-protected PDF, provide the password when you process the PDF with an AI Hub app. See instructions for configuring the settings.runtime_config.instabase.pdf.passwords property for the Run deployment or Run app operations.

Authentication

AuthorizationBearer
Bearer HTTP authentication.

Path parameters

batch_idintegerRequired
The batch ID.
filenamestringRequired

A user-defined name for the file on the Instabase filesystem. Include the file extension. This doesn’t need to be the same as its name on your local filesystem.

Headers

IB-ContextstringOptional

Typically your organization ID. See Authorization and context identification for details.

Request

This endpoint expects binary data of type application/octet-stream.

Response

File uploaded successfully.

Errors

404
Not Found Error