curl --location --request PATCH 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks/7d9c8f90-1234-5678-9abc-def012345678/tests/1234' \--header 'Authorization: Bearer YOUR_JWT_TOKEN' \--header 'Content-Type: application/json' \--data '{ "prompt": "How can I reset my password if I don't have access to my email?"}'
Copy
{ "test_id": 1234, "benchmark_id": "7d9c8f90-1234-5678-9abc-def012345678", "prompt": "How can I reset my password if I don't have access to my email?", "last_scores": { "response_style": true, "language_detection": true, "knowledge_retrieval": true }, "run_count": 15, "last_run_at": "2024-01-23T10:30:00Z", "project_id": "550e8400-e29b-41d4-a716-446655440000", "created_at": "2024-01-20T14:30:00Z"}
Test Management
Update Test
Update an existing test prompt
PATCH
/
projects
/
{project_id}
/
benchmarks
/
{benchmark_id}
/
tests
/
{test_id}
Copy
curl --location --request PATCH 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks/7d9c8f90-1234-5678-9abc-def012345678/tests/1234' \--header 'Authorization: Bearer YOUR_JWT_TOKEN' \--header 'Content-Type: application/json' \--data '{ "prompt": "How can I reset my password if I don't have access to my email?"}'
Copy
{ "test_id": 1234, "benchmark_id": "7d9c8f90-1234-5678-9abc-def012345678", "prompt": "How can I reset my password if I don't have access to my email?", "last_scores": { "response_style": true, "language_detection": true, "knowledge_retrieval": true }, "run_count": 15, "last_run_at": "2024-01-23T10:30:00Z", "project_id": "550e8400-e29b-41d4-a716-446655440000", "created_at": "2024-01-20T14:30:00Z"}
curl --location --request PATCH 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks/7d9c8f90-1234-5678-9abc-def012345678/tests/1234' \--header 'Authorization: Bearer YOUR_JWT_TOKEN' \--header 'Content-Type: application/json' \--data '{ "prompt": "How can I reset my password if I don't have access to my email?"}'
Copy
{ "test_id": 1234, "benchmark_id": "7d9c8f90-1234-5678-9abc-def012345678", "prompt": "How can I reset my password if I don't have access to my email?", "last_scores": { "response_style": true, "language_detection": true, "knowledge_retrieval": true }, "run_count": 15, "last_run_at": "2024-01-23T10:30:00Z", "project_id": "550e8400-e29b-41d4-a716-446655440000", "created_at": "2024-01-20T14:30:00Z"}