Evaluators
Updating Evaluator
Learn how to update existing evaluators configurations
Update Evaluator API
Update an existing evaluator’s configurations.
API Endpoint
Method | Endpoint |
---|---|
PATCH | https://new-prod.vocera.ai/test_framework/v1/scenarios-external/:scenario-id/ |
Authentication
Include your API key in the request headers:
Header | Description |
---|---|
X-VOCERA-API-KEY | Your API key obtained from the dashboard |
URL Parameters
Parameter | Type | Required | Description |
---|---|---|---|
scenario-id | integer | Yes | The ID of the evaluator to update |
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
name | string | No | Name of the evaluator |
agent | integer | No | ID of the agent |
personality | integer | No | ID of the personality to use |
instructions | string | No | Instructions for the evaluator |
metrics | array|integer|string | No | Metrics to set to scenario, can be array of metric IDs or first N metrics or “all” to add all or “predefined” to add all predefined |
tags | array | No | Array of tag strings |
inbound_phone_number | integer | No | ID of inbound phone number |
first_message | string | No | Initial message for the conversation |
expected_outcome_prompt | string | No | Prompt to evaluate expected outcome |
Example Request Body
Response Format
The API returns detailed information about the updated evaluator.
Response Fields
Field | Type | Description |
---|---|---|
id | integer | Unique identifier for the evaluator |
name | string | Name of the evaluator |
agent | integer | ID of the associated agent |
personality | integer | ID of the personality used |
personality_name | string | Name of the personality |
tags | array | List of tags associated with the evaluator |
runs | array | List of evaluator run IDs |
metrics | array | List of metric IDs |
metric_names | array | List of human-readable metric names |
first_message | string | Initial message for the conversation |
inbound_phone_number | integer|null | ID of the inbound phone number (See inbound numbers) |
inbound_phone_number_data | object|null | Details about the inbound phone number (see below) |
instructions | string | Evaluator instructions |
expected_outcome_prompt | string | Prompt to evaluate expected outcome |
Inbound Phone Number Data Fields
Field | Type | Description |
---|---|---|
id | integer | Internal ID of the phone number record |
number | string | The phone number in E.164 format |
phone_number_id | string | External reference ID for the phone number |