Rerun Result API

Rerun an existing result by ID

API Endpoint

MethodEndpoint
POSThttps://new-prod.vocera.ai/test_framework/v1/results-external/:result-id/rerun/

Authentication

Include your API key in the request headers:

HeaderDescription
X-VOCERA-API-KEYYour API key obtained from the dashboard

URL Parameters

Include the result ID in the URL:

ParameterTypeRequiredDescription
result-idintegerYesID of the result to rerun

Response Format

A successful request returns details about the newly created rerun result.

Response Fields

FieldTypeDescription
idintegerThe result ID
agentintegerID of associated agent
statusstringStatus of the result, can be one of:
running - Initial state when evaluator starts
in_progress - Call is currently executing
completed - Call has finished successfully
failed - Call encountered an error
pending - Testing agent is waiting to be called
success_ratefloatPercentage of runs that passed
total_runs_countintegerTotal number of test runs
completed_runs_countintegerNumber of completed test runs
success_runs_countintegerNumber of successful test runs
failed_runs_countintegerNumber of failed test runs
run_as_textbooleanIf executed as text (llm websocket) or not
scenario_namesarrayList of scenario names being tested
created_atstringISO 8601 timestamp of creation
updated_atstringISO 8601 timestamp of last update

Example Response

{

    "id": 65,

    "agent": 1,

    "status": "running",

    "success_rate": 0,

    "total_runs_count": 1,

    "completed_runs_count": 0,

    "success_runs_count": 0,

    "failed_runs_count": 0,

    "run_as_text": false,

    "scenario_names": [

        "Check Appointment Scheduling",

        "Verify Insurance Coverage",

        "Handle Patient Complaints"

    ],

    "created_at": "2024-12-19T12:21:30.274636Z",

    "updated_at": "2024-12-19T12:21:30.275047Z"

}

Code Examples

curl -X POST https://new-prod.vocera.ai/test_framework/v1/results-external/:your-result-id/rerun/ \

  -H "X-VOCERA-API-KEY: <your-api-key-here>"