FruxonDocs
EvaluationMetrics

Replace the agent's full opted-in metric set

Full replace, not a patch — anything omitted is removed from the agent. Either bucket may be empty (skipping that class of evaluation entirely), but if non-empty its weights must sum to exactly 100 or the call returns 400. Takes effect on the next eval run; in-flight runs already scheduled are unaffected.

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

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

In: header

Path Parameters

agent*string

Agent ID.

tenant*string

The tenant identifier

Replacement weight set across both buckets.

Response Body

curl -X PUT "https://api.fruxon.com/v1/tenants/string/agents/string/evaluationMetrics" \  -H "Content-Type: application/json" \  -d '[    {}  ]'
[
  {
    "metricId": "00000000-0000-0000-0000-000000000000",
    "key": "string",
    "name": "string",
    "description": "string",
    "weight": 0,
    "isDeprecated": false
  }
]
{
  "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
}