curl --request POST \
--url https://api.example.com/api/v2/projects/{project_id}/datasets/id/{dataset_id}/test-cases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"examples": [
{
"inputs": {},
"history": null,
"output": null,
"metadata": null,
"media_inputs": null,
"output_message": {
"content": "<string>",
"role": "user"
}
}
]
}
'{
"message": "<string>"
}Add test cases to a dataset using the legacy upload format. Use for bulk imports with input/output pairs.
Maximum 100 examples per request.
curl --request POST \
--url https://api.example.com/api/v2/projects/{project_id}/datasets/id/{dataset_id}/test-cases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"examples": [
{
"inputs": {},
"history": null,
"output": null,
"metadata": null,
"media_inputs": null,
"output_message": {
"content": "<string>",
"role": "user"
}
}
]
}
'{
"message": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
SimpleResponseWithMessage(message: str)