Metrics
Updating Metrics
Learn how to update existing metrics for your agents
Update Metric API
Update an existing metric’s configurations.
API Endpoint
Method | Endpoint |
---|---|
PATCH | https://new-prod.vocera.ai/test_framework/v1/metrics-external/:metric_id |
URL Parameters
Parameter | Type | Required | Description |
---|---|---|---|
metric_id | string | Yes | The unique identifier of the metric to update |
Authentication
Include your API key in the request headers:
Header | Description |
---|---|
X-VOCERA-API-KEY | Your API key obtained from the dashboard |
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
name | string | No | Name of the metric |
description | string | No | Description of what the metric evaluates |
audio_enabled | boolean | No | Whether audio analysis is enabled |
prompt_enabled | boolean | No | Whether to use a custom prompt |
prompt | string | No | Custom evaluation prompt template when prompt_enabled is true |
agent | integer | No | ID of the agent to evaluate |
eval_type | string | No | Type of metric (binary_workflow_adherence, binary_qualitative, continuous_qualitative, numeric, enum) |
enum_values | array | No | List of possible values when eval_type is “enum” |
display_order | integer | No | Order for displaying the metric |
Example Request Body
Response
A successful request returns the updated metric details.
Response Fields
Field | Type | Description |
---|---|---|
id | integer | Unique identifier for the metric |
agent | integer | ID of the associated agent |
name | string | Name of the metric |
description | string | Description of the metric |
eval_type | string | Type of metric |
enum_values | array | List of possible enum values |
audio_enabled | boolean | Whether audio analysis is enabled |
prompt_enabled | boolean | Whether custom prompt is enabled |
prompt | string | Custom evaluation prompt template |
display_order | integer | Order for displaying the metric |
overall_score | number | Total testsets passed |
total_score | number | Reviewed in total testsets |