Skip to main content
PATCH
/
projects
/
{project_id}
/
benchmarks
/
{benchmark_id}
curl --location --request PATCH 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks/7d9c8f90-1234-5678-9abc-def012345678' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "name": "Customer Service Quality v2",
  "metadata": {
    "category": "support",
    "difficulty": "medium",
    "version": "2.0",
    "last_reviewed": "2024-01-22"
  }
}'
{
  "benchmark_id": "7d9c8f90-1234-5678-9abc-def012345678",
  "name": "Customer Service Quality v2",
  "description": "Benchmark for evaluating customer service responses",
  "metadata": {
    "category": "support",
    "difficulty": "medium",
    "version": "2.0",
    "last_reviewed": "2024-01-22"
  },
  "project_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-20T14:30:00Z",
  "updated_at": "2024-01-23T09:45: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)

Body Parameters

All fields are optional - only include fields you want to update.
name
string
New name for the benchmark
description
string
New description for the benchmark
metadata
object
New metadata object (replaces existing metadata)

Response

Returns the updated benchmark object.
benchmark_id
string
required
Unique benchmark identifier (UUID)
name
string
Benchmark name
description
string
Benchmark description
metadata
object
Additional metadata
project_id
string
required
Associated project ID (UUID)
created_at
string
required
ISO 8601 timestamp of creation
updated_at
string
ISO 8601 timestamp of last update
curl --location --request PATCH 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks/7d9c8f90-1234-5678-9abc-def012345678' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "name": "Customer Service Quality v2",
  "metadata": {
    "category": "support",
    "difficulty": "medium",
    "version": "2.0",
    "last_reviewed": "2024-01-22"
  }
}'
{
  "benchmark_id": "7d9c8f90-1234-5678-9abc-def012345678",
  "name": "Customer Service Quality v2",
  "description": "Benchmark for evaluating customer service responses",
  "metadata": {
    "category": "support",
    "difficulty": "medium",
    "version": "2.0",
    "last_reviewed": "2024-01-22"
  },
  "project_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-20T14:30:00Z",
  "updated_at": "2024-01-23T09:45:00Z"
}