Skip to main content
POST
/
api
/
v3
/
benchmark
/
upload
Upload Benchmark File
curl --request POST \
  --url https://api.nugen.in/api/v3/benchmark/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'name=<string>' \
  --form 'document_id=<string>' \
  --form 'description=<string>'
{
  "id": "<string>",
  "name": "<string>",
  "status": "pending",
  "num_questions": 123,
  "questions": [
    {
      "question_num": 123,
      "question": "<string>",
      "answer": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

JSON file containing benchmark questions

name
string
required

Benchmark name

document_id
string
required

Document ID that this benchmark is based on

description
string | null

Benchmark description

Response

Successful Response

id
string
required

Unique identifier for the benchmark

name
string
required

Name of the benchmark

status
enum<string>
required

Status of the benchmark

Available options:
pending,
completed,
deploying,
evaluating,
undeployed,
evaluated,
failed
num_questions
integer
required

Number of questions in the benchmark

questions
BenchmarkQuestion · object[]

List of uploaded benchmark questions