POST
/
v1
/
benchmarks
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: 'My Bearer Token',
});

const benchmarkView = await client.benchmarks.create({ name: 'name' });

console.log(benchmarkView.id);
{
  "id": "<string>",
  "name": "<string>",
  "scenarioIds": [
    "<string>"
  ],
  "metadata": {},
  "required_environment_variables": [
    "<string>"
  ],
  "required_secret_names": [
    "<string>"
  ],
  "is_public": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json

BenchmarkCreateParameters contain the set of parameters to create a Benchmark.

Response

200 - application/json

OK

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