Upload a file for a new Batch Analysis
Upload a file for a new batch analysis. A file contains one or more documents that can be used to create a batch analysis. The file could have the extensions .csv, .jsonl, .json, or .xslx. Each record in the file should contain a 'text' field with the document text and an optional 'id' field with a unique identifier for the document.
- multipart/form-data
Request Body required
- file binary required
file to upload
Responses
- 200
- 400
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- id uuid
The unique ID of the uploaded file.
- preview array[]
Possible values:
>= 2
A preview of the columns found in that file. The first element represents the header, if present.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"preview": [
[
"string"
]
]
}
The uploaded file has an invalid format. Allowed formats are JSON and CSV.
User is not authenticated. This means token is either not present or invalid
User is read-only
The project was not found
Something is wrong with the API.
Loading...