import weflayr
from uuid import UUID
client = weflayr.client() # reads WEFLAYR_API_KEY
client.delete_benchmark(benchmark_uuid=UUID("5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01"))
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.deleteBenchmark({
client,
throwOnError: true,
query: {
benchmarkUuid: '5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01',
},
});
curl -X DELETE "https://app.weflayr.com/api/benchmarks/?benchmark_uuid=5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{
"benchmark_uuid": "5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01",
"deleted": true,
"blockers": []
}
{"error": "Invalid or missing API key. Send it as \"Authorization: Bearer <your key>\"."}
{"error": "A running benchmark cannot be removed. Read its status with get_benchmark.", "code": "invalid_benchmark_action"}
{"error": "No benchmark of this project has the id 5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01. List the project's benchmarks with get_benchmarks."}
{"error": "Invalid request payload.", "detail": [{"field": "benchmark_uuid", "error": "Field required"}]}
Benchmarks
Delete benchmark
Delete a draft or a stopped benchmark.
DELETE
/
api
/
benchmarks
/
import weflayr
from uuid import UUID
client = weflayr.client() # reads WEFLAYR_API_KEY
client.delete_benchmark(benchmark_uuid=UUID("5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01"))
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.deleteBenchmark({
client,
throwOnError: true,
query: {
benchmarkUuid: '5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01',
},
});
curl -X DELETE "https://app.weflayr.com/api/benchmarks/?benchmark_uuid=5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{
"benchmark_uuid": "5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01",
"deleted": true,
"blockers": []
}
{"error": "Invalid or missing API key. Send it as \"Authorization: Bearer <your key>\"."}
{"error": "A running benchmark cannot be removed. Read its status with get_benchmark.", "code": "invalid_benchmark_action"}
{"error": "No benchmark of this project has the id 5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01. List the project's benchmarks with get_benchmarks."}
{"error": "Invalid request payload.", "detail": [{"field": "benchmark_uuid", "error": "Field required"}]}
Delete a draft or a stopped benchmark, with its sampled calls and what it already measured. A running or finished benchmark cannot be deleted.
The response also carries
Parameters
string
required
The benchmark’s id.
blockers (what prevents the usual next step), in plain words. It is empty when the usual workflow applies.
import weflayr
from uuid import UUID
client = weflayr.client() # reads WEFLAYR_API_KEY
client.delete_benchmark(benchmark_uuid=UUID("5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01"))
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.deleteBenchmark({
client,
throwOnError: true,
query: {
benchmarkUuid: '5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01',
},
});
curl -X DELETE "https://app.weflayr.com/api/benchmarks/?benchmark_uuid=5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{
"benchmark_uuid": "5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01",
"deleted": true,
"blockers": []
}
{"error": "Invalid or missing API key. Send it as \"Authorization: Bearer <your key>\"."}
{"error": "A running benchmark cannot be removed. Read its status with get_benchmark.", "code": "invalid_benchmark_action"}
{"error": "No benchmark of this project has the id 5c1d6a52-3f5f-4c53-9a0e-6f2b9c7d8e01. List the project's benchmarks with get_benchmarks."}
{"error": "Invalid request payload.", "detail": [{"field": "benchmark_uuid", "error": "Field required"}]}