curl --request POST \
--url https://{host}.freeplay.ai/api/v2/projects/{project_id}/prompt-datasets/{dataset_id}/test-cases/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"inputs": {},
"output": "<string>",
"metadata": {},
"history": [
{
"content": "<string>",
"role": "user"
}
],
"media_inputs": {}
}
]
}
'{
"data": [
{
"id": "bf56b063-80dc-4ad5-91f6-f7067ad1fa06",
"inputs": {},
"output": "<string>",
"metadata": {},
"media_inputs": {},
"history": [
{
"content": "<string>",
"role": "user"
}
]
}
]
}Bulk Create Prompt Test Cases - Bulk Create Prompt Test Cases
curl --request POST \
--url https://{host}.freeplay.ai/api/v2/projects/{project_id}/prompt-datasets/{dataset_id}/test-cases/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"inputs": {},
"output": "<string>",
"metadata": {},
"history": [
{
"content": "<string>",
"role": "user"
}
],
"media_inputs": {}
}
]
}
'{
"data": [
{
"id": "bf56b063-80dc-4ad5-91f6-f7067ad1fa06",
"inputs": {},
"output": "<string>",
"metadata": {},
"media_inputs": {},
"history": [
{
"content": "<string>",
"role": "user"
}
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
CreatePromptTestCasesResponse(data: list[server.api_routes.prompt_datasets_api_v2.PromptTestCaseResponse])
Show child attributes
"bf56b063-80dc-4ad5-91f6-f7067ad1fa06"