ProjectScenarioRow
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}/pages/scenario_rows |
list |
ProjectScenarioRowsPage |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
project_scenario_rows, err := client.ProjectScenarioRow(nil).List(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(project_scenario_rows)
Lua
Construct client as shown in the Lua setup, then call the operations:
local project_scenario_rows, err = client:ProjectScenarioRow():list({ organization_id = "example", project_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$project_scenario_rows = $client->ProjectScenarioRow()->list(["organization_id" => "example", "project_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
project_scenario_rows = client.ProjectScenarioRow().list({"organization_id": "example", "project_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
project_scenario_rows = client.ProjectScenarioRow.list({ "organization_id" => "example", "project_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const project_scenario_rows = await client.ProjectScenarioRow().list({ organization_id: "example", project_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
actor_count |
integer |
Yes | Actor Count |
dependency_count |
integer |
Yes | Dependency Count |
health |
object |
Yes | Health |
id |
string |
Yes | Id |
labels |
array |
Yes | Labels |
name |
string |
Yes | Name |
persona_id |
string |
Yes | Persona Id |
selectable_for_run |
boolean |
Yes | Selectable For Run |
step_count |
integer |
Yes | Step Count |
list
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/pages/scenario_rows
Operation ID: api_v1_verification_project_pages_scenario_rows.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
page |
query |
integer |
No | |
sort |
query |
enum: name, last_run, recently_added |
No | |
state |
query |
enum: passing, failing, blocked, cancelled, running, not_run |
No |
Responses
200: ProjectScenarioRowsPage
application/json
| Property | Type | Required | Description |
|---|---|---|---|
pagination |
object |
Yes | |
pagination.count |
integer |
Yes | |
pagination.last |
integer |
Yes | |
pagination.limit |
integer |
Yes | |
pagination.next |
integer |
Yes | |
pagination.page |
integer |
Yes | |
pagination.previous |
integer |
Yes | |
pagination.series |
array of integer or string |
Yes | |
scenarios |
array of object |
Yes | |
scenarios[].actor_count |
integer |
Yes | |
scenarios[].dependency_count |
integer |
Yes | |
scenarios[].health |
object |
Yes | |
scenarios[].health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
scenarios[].health.failed |
integer |
Yes | |
scenarios[].health.latest |
object or null |
Yes | |
scenarios[].health.passed |
integer |
Yes | |
scenarios[].health.recent |
array of object |
Yes | |
scenarios[].health.recent[].created_at |
string |
Yes | |
scenarios[].health.recent[].finished_at |
string,null |
Yes | |
scenarios[].health.recent[].id |
string |
Yes | |
scenarios[].health.recent[].pull_request_label |
string,null |
Yes | |
scenarios[].health.recent[].pull_request_url |
string,null |
Yes | |
scenarios[].health.recent[].run_id |
string |
Yes | |
scenarios[].health.recent[].started_at |
string,null |
Yes | |
scenarios[].health.recent[].state |
string |
Yes | |
scenarios[].health.success_rate |
number,null |
Yes | |
scenarios[].id |
string |
Yes | |
scenarios[].labels |
array of string |
Yes | |
scenarios[].name |
string |
Yes | |
scenarios[].persona_id |
string |
Yes | |
scenarios[].selectable_for_run |
boolean |
Yes | |
scenarios[].step_count |
integer |
Yes |