ProjectScenarioOption
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_options |
load |
ProjectScenarioOptions |
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_option, err := client.ProjectScenarioOption(nil).Load(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(project_scenario_option)
Lua
Construct client as shown in the Lua setup, then call the operations:
local project_scenario_option, err = client:ProjectScenarioOption():load({ organization_id = "example", project_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$project_scenario_option = $client->ProjectScenarioOption()->load(["organization_id" => "example", "project_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
project_scenario_option = client.ProjectScenarioOption().load({"organization_id": "example", "project_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
project_scenario_option = client.ProjectScenarioOption.load({ "organization_id" => "example", "project_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const project_scenario_option = await client.ProjectScenarioOption().load({ organization_id: "example", project_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
environments |
array |
Yes | Environments |
permissions |
object |
Yes | Permissions |
personas |
array |
Yes | Personas |
project |
object |
Yes | Project |
scenario_states |
object |
Yes | Scenarios by the state of their latest execution. |
scenarios |
array |
Yes | Scenarios |
schedule_options |
any |
No | Schedule Options |
schedules |
array |
No | Schedules |
load
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/pages/scenario_options
Operation ID: api_v1_verification_project_pages_scenario_options.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes |
Responses
200: ProjectScenarioOptions
application/json
| Property | Type | Required | Description |
|---|---|---|---|
environments |
array of object |
Yes | |
environments[].base_url |
string |
Yes | |
environments[].id |
string |
Yes | |
environments[].kind |
string |
Yes | |
environments[].name |
string |
Yes | |
permissions |
object |
Yes | |
permissions.manage |
boolean |
Yes | |
personas |
array of object |
Yes | |
personas[].access_mode |
enum: anonymous, account, signup |
Yes | |
personas[].archived_at |
string,null (date-time) |
Yes | |
personas[].capabilities |
string,null |
Yes | |
personas[].created_at |
string (date-time) |
Yes | |
personas[].credential_id |
string,null |
Yes | The credential this persona signs in with. Without one, a run chooses from the project's credentials. |
personas[].goals |
string,null |
Yes | |
personas[].id |
string |
Yes | |
personas[].lock_version |
integer |
Yes | |
personas[].name |
string |
Yes | |
personas[].project_id |
string |
Yes | |
personas[].role |
string |
Yes | |
personas[].updated_at |
string (date-time) |
Yes | |
project |
object |
Yes | |
project.archived_at |
string,null |
Yes | |
project.demo |
boolean |
Yes | A signup's demo project, copied from the Acme Notes template. Archiving removes it. |
project.execution_mode |
enum: website, computer_use |
Yes | |
project.icon_url |
string,null |
Yes | |
project.id |
string |
Yes | |
project.lock_version |
integer |
Yes | |
project.name |
string |
Yes | |
project.slug |
string |
Yes | |
scenario_states |
object |
Yes | Scenarios by the state of their latest execution. Timeouts count as failing. |
scenario_states.blocked |
integer |
Yes | |
scenario_states.cancelled |
integer |
Yes | |
scenario_states.failing |
integer |
Yes | |
scenario_states.not_run |
integer |
Yes | |
scenario_states.passing |
integer |
Yes | |
scenario_states.running |
integer |
Yes | |
scenario_states.total |
integer |
Yes | |
scenarios |
array of object |
Yes | |
scenarios[].current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | |
scenarios[].id |
string |
Yes | |
scenarios[].labels |
array of string |
Yes | |
scenarios[].selectable_for_run |
boolean |
Yes | |
schedule_options |
object and object |
No | |
schedules |
array of object |
No | |
schedules[].credential_ids |
object |
Yes | |
schedules[].cron_expression |
string |
No | |
schedules[].environment_id |
string |
Yes | |
schedules[].environment_name |
string |
No | |
schedules[].history |
array of object |
Yes | |
schedules[].history[].due_at |
string (date-time) |
Yes | |
schedules[].history[].error_code |
string |
Yes | |
schedules[].history[].id |
string |
Yes | |
schedules[].history[].outcome |
string |
Yes | |
schedules[].history[].run_path |
string |
Yes | |
schedules[].history[].state |
string |
Yes | |
schedules[].id |
string |
Yes | |
schedules[].labels |
array of string |
Yes | |
schedules[].lock_version |
integer |
Yes | |
schedules[].name |
string |
Yes | |
schedules[].next_run_at |
string (date-time) |
Yes | |
schedules[].notification_channel |
enum: email, slack, none |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
schedules[].scenario_count |
integer |
Yes | |
schedules[].selection_mode |
enum: all, labels |
Yes | |
schedules[].slack_subscription_id |
string |
No | |
schedules[].source_scenario_id |
string |
No | |
schedules[].state |
enum: active, paused |
Yes | |
schedules[].time_of_day |
string |
Yes | |
schedules[].time_zone |
string |
Yes |