POST
/
v1
/
benchmarks
/
{id}
curl --request POST \
  --url https://api.runloop.ai/v1/benchmarks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "scenario_ids": [
    "<string>"
  ],
  "metadata": {},
  "is_public": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "scenarioIds": [
    "<string>"
  ],
  "metadata": {},
  "is_public": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The Benchmark ID.

Body

application/json

BenchmarkCreateParameters contain the set of paramters to create a Benchmark.

name
string
required

The name of the Benchmark.

is_public
boolean
required

Whether this benchmark is public.

scenario_ids
string[] | null

The Scenario IDs that make up the Benchmark.

metadata
object | null

User defined metadata to attach to the benchmark for organization.

Response

200 - application/json
OK

A BenchmarkView represents a grouped set of Scenarios that together form a Benchmark.

id
string
required

The ID of the Benchmark.

name
string
required

The name of the Benchmark.

scenarioIds
string[]
required

List of Scenario IDs that make up the benchmark.

metadata
object
required

User defined metadata to attach to the benchmark for organization.

is_public
boolean

Whether this benchmark is public.

Was this page helpful?