Finalize Single Dataset File Upload
Finalize Single Dataset File Upload
POST/api/2/auto_eval/dataset/finalize_single_file_upload
Finalize a Dataset file upload. This call should be made after the file has been uploaded to the S3 URL returned from UploadDatasetFile.
Request
- application/json
Body
datasetId stringrequired
The ID of the dataset corresponding to the file
s3PresignedPost
object
required
The pre-signed S3 URL where the file was uploadeded
url stringrequired
fields
object
required
Fields required for the S3 presigned POST request generated by s3 sdk.
property name* string
Responses
- 200
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
datasetFile
object
Information about the dataset file if the upload was successful
id stringrequired
The ID of the dataset file.
createdAt date-timerequired
updatedAt date-timerequired
datasetId stringrequired
The ID of the corresponding dataset.
contentMd5Hash stringrequired
fileSizeBytes integerrequired
numRows integerrequired
numCols integerrequired
columns
object[]
required
id stringrequired
The ID of the dataset file.
createdAt date-timerequired
updatedAt date-timerequired
index integerrequired
Index of the column within the dataset file.
literalName stringrequired
The literal name for the column.
dtype string
{
"datasetFile": {
"id": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"datasetId": "string",
"contentMd5Hash": "string",
"fileSizeBytes": 0,
"numRows": 0,
"numCols": 0,
"columns": [
{
"id": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"index": 0,
"literalName": "string",
"dtype": "string"
}
]
}
}
Loading...