Skip to main content
PATCH
/
projects
/
{project_id}
/
benchmarks
/
{benchmark_id}
/
tests
/
{test_id}
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?"
}'
{
  "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"
}

Authentication

Authorization
string
required
Bearer token

Path Parameters

project_id
string
required
The unique identifier of the project (UUID format)
benchmark_id
string
required
The unique identifier of the benchmark (UUID format)
test_id
integer
required
The unique identifier of the test

Body Parameters

prompt
string
required
The new test prompt or input

Response

Returns the updated test object.
test_id
integer
required
Unique test identifier
benchmark_id
string
required
Associated benchmark ID (UUID)
prompt
string
The updated test prompt/input
last_scores
object
Latest evaluation scores (unchanged by update)
run_count
integer
required
Total number of runs for this test
last_run_at
string
ISO 8601 timestamp of the most recent run
project_id
string
required
Associated project ID (UUID)
created_at
string
required
ISO 8601 timestamp of creation
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?"
}'
{
  "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"
}