dots.v2.genAi.custom_evaluation_metrics.byMetric_uuid().put()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.genAi.custom_evaluation_metrics.byMetric_uuid(metric_uuid).put(body: ApiUpdateCustomEvaluationMetricInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiUpdateCustomEvaluationMetricOutput>Description
To update a custom metric (issuing a new metric UUID), send a PUT request to /v2/gen-ai/custom_evaluation_metrics/{metric_uuid}.
Parameters
Path Parameters
metric_uuidstring requiredExample:
"123e4567-e89b-12d3-a456-426614174000"UUID of the custom metric to update.
Request Body
configobject optionalConfiguration for a custom model-evaluation metric scored by an LLM judge.
Prompt and model response are always included in the judge context.Show child properties
createdAtstring optionalExample:
2023-01-01T00:00:00ZdeletedAtstring optionalExample:
2023-01-01T00:00:00ZWhen set, the custom metric is soft-deleted and must not appear in pickers.
requiresGroundTruthboolean optionalExample:
trueWhen true, each row must provide ground truth and it is included in the judge context.
When false, ground truth is not required and is not sent to the judge.scoringPromptstring optionalExample:
example stringInstructions for the judge model (multi-line).
turnTypestring optionalWhether the metric is for single-turn or multi-turn evaluations.
updatedAtstring optionalExample:
2023-01-01T00:00:00Z
descriptionstring optionalExample:
example stringmetricNamestring optionalExample:
"My domain tone metric"metricUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"
Request Sample
Response Example
More Information
See /v2/gen-ai/custom_evaluation_metrics/{metric_uuid} in the API reference for additional detail on responses, headers, parameters, and more.