Update an assistant test
PUT/ai/assistants/tests/:test_id
Updates an existing assistant test configuration with new settings
Request
Path Parameters
- application/json
Body
required
Array [
]
Possible values: non-empty
and <= 255 characters
Updated name for the assistant test. Must be unique and descriptive.
Possible values: <= 1000 characters
Updated description of the test's purpose and evaluation criteria.
Possible values: [phone_call
, web_call
, sms_chat
, web_chat
]
Updated communication channel for the test execution.
Possible values: non-empty
Updated target destination for test conversations.
Possible values: >= 1
and <= 3600
Updated maximum test duration in seconds.
Possible values: <= 100 characters
Updated test suite assignment for better organization.
Possible values: non-empty
and <= 5000 characters
Updated test scenario instructions and objectives.
rubric
object[]
Possible values: >= 1
Updated evaluation criteria for assessing assistant performance.
Label for the evaluation criterion, e.g., Empathy, Accuracy, Clarity.
Specific guidance on how to assess the assistant’s performance for this rubric item.
Responses
200: Returns the updated test configuration with all changes applied
- application/json
422: Validation Error
- application/json
Request samples
curl -L -X PUT 'https://api.telnyx.com/v2/ai/assistants/tests/:test_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "string",
"description": "string",
"telnyx_conversation_channel": "phone_call",
"destination": "string",
"max_duration_seconds": 0,
"test_suite": "string",
"instructions": "string",
"rubric": [
{
"name": "string",
"criteria": "string"
}
]
}'
Response samples
{
"test_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Customer Support Bot Test",
"description": "string",
"telnyx_conversation_channel": "phone_call",
"destination": "string",
"max_duration_seconds": 0,
"test_suite": "string",
"instructions": "string",
"rubric": [
[
{
"criteria": "Responds within 30 seconds",
"name": "Response Time"
}
]
],
"created_at": [
"2024-01-15T09:00:00Z"
]
}
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}