ProjectRunSchedule
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules |
create |
Success |
POST |
/api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/preview |
create |
Current matching scenarios and credential requirements |
GET |
/api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules |
list |
Success |
GET |
/api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/{id} |
load |
Success |
GET |
/api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/lookup |
load |
Success |
PATCH |
/api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/{id} |
patch |
Success |
PUT |
/api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/{id} |
update |
Success |
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_run_schedules, err := client.ProjectRunSchedule(nil).List(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(project_run_schedules)
project_run_schedule, err := client.ProjectRunSchedule(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(project_run_schedule)
created, err := client.ProjectRunSchedule(nil).Create(map[string]any{"organization_id": "example", "project_id": "example", "credential_ids": map[string]any{}, "environment_id": "example", "labels": []any{}, "name": "example", "selection_mode": "example", "state": "example", "time_of_day": "example", "time_zone": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.ProjectRunSchedule(nil).Update(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.ProjectRunSchedule(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
Lua
Construct client as shown in the Lua setup, then call the operations:
local project_run_schedules, err = client:ProjectRunSchedule():list({ organization_id = "example", project_id = "example" })
local project_run_schedule, err = client:ProjectRunSchedule():load({ id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:ProjectRunSchedule():create({ organization_id = "example", project_id = "example", credential_ids = {}, environment_id = "example", labels = {}, name = "example", selection_mode = "example", state = "example", time_of_day = "example", time_zone = "example" })
local updated, err = client:ProjectRunSchedule():update({ id = "example_id", organization_id = "example", project_id = "example" })
local patched, err = client:ProjectRunSchedule():patch({ id = "example_id", organization_id = "example", project_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$project_run_schedules = $client->ProjectRunSchedule()->list(["organization_id" => "example", "project_id" => "example"]);
$project_run_schedule = $client->ProjectRunSchedule()->load(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->ProjectRunSchedule()->create(["organization_id" => "example", "project_id" => "example", "credential_ids" => [], "environment_id" => "example", "labels" => [], "name" => "example", "selection_mode" => "example", "state" => "example", "time_of_day" => "example", "time_zone" => "example"]);
$updated = $client->ProjectRunSchedule()->update(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$patched = $client->ProjectRunSchedule()->patch(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
project_run_schedules = client.ProjectRunSchedule().list({"organization_id": "example", "project_id": "example"})
project_run_schedule = client.ProjectRunSchedule().load({"id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.ProjectRunSchedule().create({ "organization_id": "example", "project_id": "example", "credential_ids": {}, "environment_id": "example", "labels": [], "name": "example", "selection_mode": "example", "state": "example", "time_of_day": "example", "time_zone": "example" })
updated = client.ProjectRunSchedule().update({"id": "example_id", "organization_id": "example", "project_id": "example"})
patched = client.ProjectRunSchedule().patch({"id": "example_id", "organization_id": "example", "project_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
project_run_schedules = client.ProjectRunSchedule.list({ "organization_id" => "example", "project_id" => "example" })
project_run_schedule = client.ProjectRunSchedule.load({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.ProjectRunSchedule.create({ "organization_id" => "example", "project_id" => "example", "credential_ids" => {}, "environment_id" => "example", "labels" => [], "name" => "example", "selection_mode" => "example", "state" => "example", "time_of_day" => "example", "time_zone" => "example" })
updated = client.ProjectRunSchedule.update({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
patched = client.ProjectRunSchedule.patch({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const project_run_schedules = await client.ProjectRunSchedule().list({ organization_id: "example", project_id: "example" })
const project_run_schedule = await client.ProjectRunSchedule().load({ id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.ProjectRunSchedule().create({ organization_id: "example", project_id: "example", credential_ids: {}, environment_id: "example", labels: [], name: "example", selection_mode: "example", state: "example", time_of_day: "example", time_zone: "example" })
const updated = await client.ProjectRunSchedule().update({ id: "example_id", organization_id: "example", project_id: "example" })
const patched = await client.ProjectRunSchedule().patch({ id: "example_id", organization_id: "example", project_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
Yes | Credential Ids |
cron_expression |
one,string,null |
No | Cron Expression |
environment_id |
string |
Yes | Project environment slug or public ID. |
environment_name |
string |
No | Environment Name |
history |
array |
Yes | History |
id |
string |
Yes | Id |
labels |
array |
Yes | Labels |
lock_version |
integer |
Yes | Lock Version |
name |
string |
Yes | Name |
next_run_at |
string |
Yes | Next Run At |
notification_channel |
string |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
scenario_count |
integer |
Yes | Scenario Count |
selection_mode |
string |
Yes | Selection Mode |
slack_subscription_id |
one,string,null |
No | Slack Subscription Id |
source_scenario_id |
one,string,null |
No | Source Scenario Id |
state |
string |
Yes | State |
time_of_day |
string |
Yes | Time Of Day |
time_zone |
string |
Yes | Time Zone |
version |
integer |
Yes | Version |
create
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules
Operation ID: post_api_v1_organizations_organization_id_verification_projects_project_id_run_schedules.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
Yes | |
environment_id |
string |
Yes | Project environment slug or public ID. |
labels |
array of string |
Yes | |
name |
string |
Yes | |
notification_channel |
enum: email, slack |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
selection_mode |
enum: all, labels |
Yes | |
slack_subscription_id |
string |
No | |
state |
enum: active, paused |
Yes | |
time_of_day |
string |
Yes | |
time_zone |
string |
Yes |
Responses
200: Success
application/json
The response is object.
201: Success
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
Yes | |
cron_expression |
string |
No | |
environment_id |
string |
Yes | |
environment_name |
string |
No | |
history |
array of object |
Yes | |
history[].due_at |
string (date-time) |
Yes | |
history[].error_code |
string |
Yes | |
history[].id |
string |
Yes | |
history[].outcome |
string |
Yes | |
history[].run_path |
string |
Yes | |
history[].state |
string |
Yes | |
id |
string |
Yes | |
labels |
array of string |
Yes | |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
next_run_at |
string (date-time) |
Yes | |
notification_channel |
enum: email, slack, none |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
scenario_count |
integer |
Yes | |
selection_mode |
enum: all, labels |
Yes | |
slack_subscription_id |
string |
No | |
source_scenario_id |
string |
No | |
state |
enum: active, paused |
Yes | |
time_of_day |
string |
Yes | |
time_zone |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/preview
Operation ID: preview_api_v1_verification_project_run_schedules.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
labels |
array of string |
Yes | |
selection_mode |
enum: all, labels |
Yes |
Responses
200: Current matching scenarios and credential requirements
application/json
| Property | Type | Required | Description |
|---|---|---|---|
count |
integer |
Yes | |
personas |
array of object |
Yes | |
personas[].credential_id |
string |
Yes | |
personas[].id |
string |
Yes | |
personas[].name |
string |
Yes | |
scenarios |
array of object |
Yes | |
scenarios[].available |
boolean |
Yes | |
scenarios[].id |
string |
Yes | |
scenarios[].name |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules
Operation ID: api_v1_verification_project_run_schedules.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes |
Responses
200: Success
application/json
| Property | Type | Required | Description |
|---|---|---|---|
[].credential_ids |
object |
Yes | |
[].cron_expression |
string |
No | |
[].environment_id |
string |
Yes | |
[].environment_name |
string |
No | |
[].history |
array of object |
Yes | |
[].history[].due_at |
string (date-time) |
Yes | |
[].history[].error_code |
string |
Yes | |
[].history[].id |
string |
Yes | |
[].history[].outcome |
string |
Yes | |
[].history[].run_path |
string |
Yes | |
[].history[].state |
string |
Yes | |
[].id |
string |
Yes | |
[].labels |
array of string |
Yes | |
[].lock_version |
integer |
Yes | |
[].name |
string |
Yes | |
[].next_run_at |
string (date-time) |
Yes | |
[].notification_channel |
enum: email, slack, none |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
[].scenario_count |
integer |
Yes | |
[].selection_mode |
enum: all, labels |
Yes | |
[].slack_subscription_id |
string |
No | |
[].source_scenario_id |
string |
No | |
[].state |
enum: active, paused |
Yes | |
[].time_of_day |
string |
Yes | |
[].time_zone |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/{id}
Operation ID: api_v1_verification_project_run_schedule.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
Yes | |
cron_expression |
string |
No | |
environment_id |
string |
Yes | |
environment_name |
string |
No | |
history |
array of object |
Yes | |
history[].due_at |
string (date-time) |
Yes | |
history[].error_code |
string |
Yes | |
history[].id |
string |
Yes | |
history[].outcome |
string |
Yes | |
history[].run_path |
string |
Yes | |
history[].state |
string |
Yes | |
id |
string |
Yes | |
labels |
array of string |
Yes | |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
next_run_at |
string (date-time) |
Yes | |
notification_channel |
enum: email, slack, none |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
scenario_count |
integer |
Yes | |
selection_mode |
enum: all, labels |
Yes | |
slack_subscription_id |
string |
No | |
source_scenario_id |
string |
No | |
state |
enum: active, paused |
Yes | |
time_of_day |
string |
Yes | |
time_zone |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/lookup
Operation ID: lookup_api_v1_verification_project_run_schedules.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
name |
query |
string |
Yes | Exact schedule name; ambiguous names require a public ID. |
Responses
200: Success
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
Yes | |
cron_expression |
string |
No | |
environment_id |
string |
Yes | |
environment_name |
string |
No | |
history |
array of object |
Yes | |
history[].due_at |
string (date-time) |
Yes | |
history[].error_code |
string |
Yes | |
history[].id |
string |
Yes | |
history[].outcome |
string |
Yes | |
history[].run_path |
string |
Yes | |
history[].state |
string |
Yes | |
id |
string |
Yes | |
labels |
array of string |
Yes | |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
next_run_at |
string (date-time) |
Yes | |
notification_channel |
enum: email, slack, none |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
scenario_count |
integer |
Yes | |
selection_mode |
enum: all, labels |
Yes | |
slack_subscription_id |
string |
No | |
source_scenario_id |
string |
No | |
state |
enum: active, paused |
Yes | |
time_of_day |
string |
Yes | |
time_zone |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/{id}
Operation ID: patch_api_v1_organizations_organization_id_verification_projects_project_id_run_schedules_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
No | |
environment_id |
string |
No | Project environment slug or public ID. |
labels |
array of string |
No | |
name |
string |
No | |
notification_channel |
enum: email, slack |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
selection_mode |
enum: all, labels |
No | |
slack_subscription_id |
string |
No | |
state |
enum: active, paused |
No | |
time_of_day |
string |
No | |
time_zone |
string |
No | |
version |
integer |
Yes |
Responses
200: Success
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
Yes | |
cron_expression |
string |
No | |
environment_id |
string |
Yes | |
environment_name |
string |
No | |
history |
array of object |
Yes | |
history[].due_at |
string (date-time) |
Yes | |
history[].error_code |
string |
Yes | |
history[].id |
string |
Yes | |
history[].outcome |
string |
Yes | |
history[].run_path |
string |
Yes | |
history[].state |
string |
Yes | |
id |
string |
Yes | |
labels |
array of string |
Yes | |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
next_run_at |
string (date-time) |
Yes | |
notification_channel |
enum: email, slack, none |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
scenario_count |
integer |
Yes | |
selection_mode |
enum: all, labels |
Yes | |
slack_subscription_id |
string |
No | |
source_scenario_id |
string |
No | |
state |
enum: active, paused |
Yes | |
time_of_day |
string |
Yes | |
time_zone |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/run_schedules/{id}
Operation ID: put_api_v1_organizations_organization_id_verification_projects_project_id_run_schedules_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
No | |
environment_id |
string |
No | Project environment slug or public ID. |
labels |
array of string |
No | |
name |
string |
No | |
notification_channel |
enum: email, slack |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
selection_mode |
enum: all, labels |
No | |
slack_subscription_id |
string |
No | |
state |
enum: active, paused |
No | |
time_of_day |
string |
No | |
time_zone |
string |
No | |
version |
integer |
Yes |
Responses
200: Success
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credential_ids |
object |
Yes | |
cron_expression |
string |
No | |
environment_id |
string |
Yes | |
environment_name |
string |
No | |
history |
array of object |
Yes | |
history[].due_at |
string (date-time) |
Yes | |
history[].error_code |
string |
Yes | |
history[].id |
string |
Yes | |
history[].outcome |
string |
Yes | |
history[].run_path |
string |
Yes | |
history[].state |
string |
Yes | |
id |
string |
Yes | |
labels |
array of string |
Yes | |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
next_run_at |
string (date-time) |
Yes | |
notification_channel |
enum: email, slack, none |
No | Email the schedule owner by default; legacy requests with a Slack subscription keep Slack. |
scenario_count |
integer |
Yes | |
selection_mode |
enum: all, labels |
Yes | |
slack_subscription_id |
string |
No | |
source_scenario_id |
string |
No | |
state |
enum: active, paused |
Yes | |
time_of_day |
string |
Yes | |
time_zone |
string |
Yes |