API

RunScenarioRun

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/runs/{id}/scenario_runs/{scenario_run_id}/live_frame load JPEG frame
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/runs/{id}/scenario_runs/{scenario_run_id}/scenario_edit load The current scenario and the environment for a new run; admins only
PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/runs/{id}/scenario_runs/{scenario_run_id}/scenario_edit update Saved scenario; the original run remains unchanged

Fields

Field Type Required Description
id string No Id

load

GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/runs/{id}/scenario_runs/{scenario_run_id}/live_frame

Operation ID: get_api_v1_organizations_organization_id_verification_projects_project_id_runs_id_scenario_runs_scenario_run_id_live_frame.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes
scenario_run_id path string Yes

Responses

200: JPEG frame

image/jpeg

The response is string (binary).

404: No live frame; the scenario is not running or has not captured one

GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/runs/{id}/scenario_runs/{scenario_run_id}/scenario_edit

Operation ID: get_api_v1_organizations_organization_id_verification_projects_project_id_runs_id_scenario_runs_scenario_run_id_scenario_edit.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes
scenario_run_id path string Yes

Responses

200: The current scenario and the environment for a new run; admins only

application/json

Property Type Required Description
actor_keys array of string Yes
can_run boolean Yes
current object Yes
current.outcomes array of string or object Yes
current.steps array of string or object Yes
organization_id string Yes
run_unavailable_reason string,null Yes
scenario_id string Yes
version integer Yes

update

PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/runs/{id}/scenario_runs/{scenario_run_id}/scenario_edit

Operation ID: patch_api_v1_organizations_organization_id_verification_projects_project_id_runs_id_scenario_runs_scenario_run_id_scenario_edit.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes
scenario_run_id path string Yes

Request body

application/json

The request body is object and object.

Responses

200: Saved scenario; the original run remains unchanged

application/json

Property Type Required Description
actor_keys array of string Yes
can_run boolean Yes
current object Yes
current.outcomes array of string or object Yes
current.steps array of string or object Yes
organization_id string Yes
run_unavailable_reason string,null Yes
scenario_id string Yes
version integer Yes
409: The scenario changed since this draft was opened
422: Invalid steps or outcomes, or the saved scenario is unavailable