PATCH/api/v1/evals/{runId}

Update eval run status

Update the status of an eval run. Used by workers or sync execution.

Authentication

Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/api-keys.

Parameters

runId in pathrequired
string

Request body required

Example

{
  "status": "pending",
  "summary": {
    "score": 0,
    "totalLatency": 0
  }
}
Schema
{
  "application/json": {
    "schema": {
      "type": "object",
      "required": [
        "status"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "queued",
            "running",
            "passed",
            "failed",
            "error"
          ]
        },
        "summary": {
          "type": "object",
          "properties": {
            "score": {
              "type": "number"
            },
            "totalLatency": {
              "type": "number"
            }
          }
        }
      }
    }
  }
}

Response

All status codes

200Updated eval run
404(no description)

Code samples

cURL

curl -X PATCH \
  https://evalguard.ai/api/v1/evals/{runId} \
  -H "Authorization: Bearer $EVALGUARD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "status": "pending", "summary": { "score": 0, "totalLatency": 0 } }'

TypeScript

import { EvalGuard } from "@evalguard/sdk";

const client = new EvalGuard({ apiKey: process.env.EVALGUARD_API_KEY });

const response = await client.request({
  method: "PATCH",
  path: "/api/v1/evals/{runId}",
  body: {
    "status": "pending",
    "summary": {
      "score": 0,
      "totalLatency": 0
    }
  },
});
console.log(response);

Python

from evalguard import EvalGuard
import os

client = EvalGuard(api_key=os.environ["EVALGUARD_API_KEY"])

response = client.request(
    method="PATCH",
    path="/api/v1/evals/{runId}",
    body={
    "status": "pending",
    "summary": {
        "score": 0,
        "totalLatency": 0
    }
},
)
print(response)

Go

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/evalguard/evalguard-go"
)

func main() {
	client := evalguard.NewClient(os.Getenv("EVALGUARD_API_KEY"))
	resp, err := client.Request(context.Background(), "PATCH", "/api/v1/evals/{runId}", map[string]any{"status": "pending", "summary": map[string]any{"score": 0, "totalLatency": 0}})
	if err != nil { panic(err) }
	fmt.Println(resp)
}

Errors

404

Other Evals endpoints