{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To update a custom metric (issuing a new metric UUID), send a PUT request to `/v2/gen-ai/custom_evaluation_metrics/{metric_uuid}`.","properties":{"path":{"type":"object","properties":{"metric_uuid":{"type":"string","examples":["\"123e4567-e89b-12d3-a456-426614174000\""],"description":"UUID of the custom metric to update."}},"required":["metric_uuid"],"additionalProperties":false},"body":{"$ref":"#/definitions/apiUpdateCustomEvaluationMetricInputPublic"}},"required":["path"],"additionalProperties":false,"definitions":{"apiUpdateCustomEvaluationMetricInputPublic":{"properties":{"config":{"$ref":"#/definitions/apiCustomEvaluationMetricConfig"},"description":{"type":"string","examples":["example string"]},"metric_name":{"type":"string","examples":["\"My domain tone metric\""]},"metric_uuid":{"type":"string","examples":["\"12345678-1234-1234-1234-123456789012\""]}},"type":"object"},"apiCustomEvaluationMetricConfig":{"description":"Configuration for a custom model-evaluation metric scored by an LLM judge.\nPrompt and model response are always included in the judge context.","properties":{"created_at":{"format":"date-time","type":"string","examples":["2023-01-01T00:00:00Z"]},"deleted_at":{"description":"When set, the custom metric is soft-deleted and must not appear in pickers.","format":"date-time","type":"string","examples":["2023-01-01T00:00:00Z"]},"requires_ground_truth":{"description":"When true, each row must provide ground truth and it is included in the judge context.\nWhen false, ground truth is not required and is not sent to the judge.","type":"boolean","examples":[true]},"scoring_prompt":{"description":"Instructions for the judge model (multi-line).","type":"string","examples":["example string"]},"updated_at":{"format":"date-time","type":"string","examples":["2023-01-01T00:00:00Z"]}},"type":"object"}}},"name":"Update Custom Evaluation Metric","id":"digitalocean.genai_update_custom_evaluation_metric","example":{"path":{"metric_uuid":"\"123e4567-e89b-12d3-a456-426614174000\""}},"maxRequests":1,"summary":false}}