AI Tests
Update a scheduled test job
Changed onUpdates the specified scheduled test job.
patch/ai/tests/schedules/v1/cron-jobs/{id}
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/ai/tests/schedules/v1/cron-jobs/{id}
- Auth: HTTP bearer
Path parameters
idinteger required
Numeric ID of the scheduled test job.
Request body
Example request
{
"name": "Nightly regression - updated",
"notify_on": "both",
"is_active": true,
"crontab_expression": "0 4 * * *"
}Response
Updated scheduled test job.
Example response
{
"id": 1188,
"name": "Nightly regression",
"agent": 1259,
"crontab_expression": "0 3 * * *",
"timezone": "America/Chicago",
"scenario_ids": [
9512
],
"scenarios_data": [
{
"id": 9512,
"agent": 1259,
"name": "Refund escalation flow",
"personality": 4643,
"personality_name": "Interruptive (High)"
}
],
"personality": null,
"personalities": [
4643
],
"tags": [
"regression"
],
"frequency": 1,
"run_as_text": false,
"execution_mode": "voice",
"notify_on": "failure",
"is_active": true,
"created_at": "2026-10-13T18:04:05.123456Z",
"updated_at": "2026-10-13T18:04:05.123456Z"
}Changes
- info
endpoint added
- info