Testsets
Upload File
Uploads a CSV or JSON file and saves its data to MongoDB.
Args: upload_type : Either a json or csv file. file (UploadFile): The CSV or JSON file to upload. testset_name (Optional): the name of the testset if provided.
Returns: dict: The result of the upload process.
POST
/
testsets
/
upload
Authorizations
Authorization
string
headerrequiredBody
multipart/form-data
upload_type
string
file
string
requiredtestset_name
string
app_id
string
Response
200 - application/json
id
string
requiredname
string
requiredcreated_at
string
requiredWas this page helpful?