ScenarioRevision
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}/scenarios/{id}/revisions |
list |
ScenarioRevisionCollection |
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:
scenario_revisions, err := client.ScenarioRevision(nil).List(map[string]any{"organization_id": "example", "project_id": "example", "scenario_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(scenario_revisions)
Lua
Construct client as shown in the Lua setup, then call the operations:
local scenario_revisions, err = client:ScenarioRevision():list({ organization_id = "example", project_id = "example", scenario_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$scenario_revisions = $client->ScenarioRevision()->list(["organization_id" => "example", "project_id" => "example", "scenario_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
scenario_revisions = client.ScenarioRevision().list({"organization_id": "example", "project_id": "example", "scenario_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
scenario_revisions = client.ScenarioRevision.list({ "organization_id" => "example", "project_id" => "example", "scenario_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const scenario_revisions = await client.ScenarioRevision().list({ organization_id: "example", project_id: "example", scenario_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
action |
string |
Yes | Action |
batch |
string |
Yes | Shared by every revision one request or job saved. |
created_at |
string |
Yes | Created At |
definition |
object |
Yes | One narrative v1 or named-actor v2 Scenario file; its $schema identifies the full contract. |
id |
string |
Yes | Id |
source |
string |
Yes | The client the save came through. |
user |
any |
Yes | Null when a system job saved the Scenario. |
version |
integer |
Yes | The Scenario's lock_version after this save. |
list
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/{id}/revisions
Operation ID: revisions_api_v1_verification_project_scenario.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
page |
query |
integer |
No |
Responses
200: ScenarioRevisionCollection
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 | |
revisions |
array of object and object |
Yes |