cURL
curl --request POST \ --url https://api.promptloop.com/v0.1/batches/validate-data \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'task_id=<string>' \ --form batch_input_data=@example-file
{ "status": "success", "data": [ { "job_count": 123, "job_improper_format_count": 123, "job_improper_format": [ { "error_index": 123, "error_message": "<string>" } ] } ], "message": "<string>", "error": { "code": 123, "details": "<string>" } }
Uploads a JSONL file and validates the data for a new batch with the provided data. Returns the batch id.
Batch data successfully validated.
The response is of type object.
object