FruxonDocs
EvaluationMetrics

Update an existing evaluation metric.

Mutates the metric in place — every agent currently opted-in picks up the new prompt/weight on the next eval run. Use `POST EvaluationMetricDeprecate` instead of editing when you want to retire a metric without breaking historical comparability. System (non-LLM-judge) metrics cannot be edited and will return 400.

PUT
/v1/tenants/{tenant}/evaluationMetrics/{metricId}
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

metricId*string

ID of the metric to update.

Formatuuid
tenant*string

The tenant identifier

Updated name, description, and default weight.

name*string

Human-readable display name. Example: "Response Quality".

Length1 <= length
description*string

What the LLM judge should evaluate for this metric. Sent verbatim as part of the evaluation criteria JSON.

Length1 <= length
defaultWeight?integer

Suggested weight (1–100) shown by the frontend when an agent opts into this metric. Used as the seeding hint when auto-normalizing a new agent's metric set.

Formatint32
Range1 <= value <= 100
[key: string]?never

Response Body

curl -X PUT "https://api.fruxon.com/v1/tenants/string/evaluationMetrics/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "description": "string"  }'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "key": "string",
  "name": "string",
  "description": "string",
  "defaultWeight": 0,
  "isDeprecated": false,
  "createdAt": 0,
  "modifiedAt": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}