EnvironmentRevision
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}/verify/environments/{verify_environment_id}/revisions/{id}/provision |
create |
Existing provision operation returned for an idempotent replay |
POST |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id}/revoke |
create |
Existing revoke operation returned for an idempotent replay |
POST |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id}/validate |
create |
Environment revision validated |
POST |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions |
create |
Blueprint dry-run or idempotent replay |
GET |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id} |
load |
Success |
POST |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id} |
update |
Existing destroy operation returned for an idempotent replay |
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:
environment_revision, err := client.EnvironmentRevision(nil).Load(map[string]any{"environment_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(environment_revision)
created, err := client.EnvironmentRevision(nil).Create(map[string]any{"environment_id": "example", "organization_id": "example", "blueprint": map[string]any{}}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.EnvironmentRevision(nil).Update(map[string]any{"id": "example_id", "environment_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
Lua
Construct client as shown in the Lua setup, then call the operations:
local environment_revision, err = client:EnvironmentRevision():load({ environment_id = "example", id = "example_id", organization_id = "example" })
local created, err = client:EnvironmentRevision():create({ environment_id = "example", organization_id = "example", blueprint = {} })
local updated, err = client:EnvironmentRevision():update({ id = "example_id", environment_id = "example", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$environment_revision = $client->EnvironmentRevision()->load(["environment_id" => "example", "id" => "example_id", "organization_id" => "example"]);
$created = $client->EnvironmentRevision()->create(["environment_id" => "example", "organization_id" => "example", "blueprint" => []]);
$updated = $client->EnvironmentRevision()->update(["id" => "example_id", "environment_id" => "example", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
environment_revision = client.EnvironmentRevision().load({"environment_id": "example", "id": "example_id", "organization_id": "example"})
created = client.EnvironmentRevision().create({ "environment_id": "example", "organization_id": "example", "blueprint": {} })
updated = client.EnvironmentRevision().update({"id": "example_id", "environment_id": "example", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
environment_revision = client.EnvironmentRevision.load({ "environment_id" => "example", "id" => "example_id", "organization_id" => "example" })
created = client.EnvironmentRevision.create({ "environment_id" => "example", "organization_id" => "example", "blueprint" => {} })
updated = client.EnvironmentRevision.update({ "id" => "example_id", "environment_id" => "example", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const environment_revision = await client.EnvironmentRevision().load({ environment_id: "example", id: "example_id", organization_id: "example" })
const created = await client.EnvironmentRevision().create({ environment_id: "example", organization_id: "example", blueprint: {} })
const updated = await client.EnvironmentRevision().update({ id: "example_id", environment_id: "example", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array |
Yes | Origins browser testers may visit, subdomains included. |
app_environment_id |
one,string,null |
Yes | App Environment Id |
app_release_id |
one,string,null |
Yes | App Release Id |
blueprint |
object |
Yes | Blueprint |
blueprint_json |
object |
Yes | Blueprint Json |
cleanup_state |
string |
Yes | Cleanup State |
created_at |
string |
Yes | Created At |
digest |
string |
Yes | Digest |
dry_run |
boolean |
No | Dry Run |
expires_at |
one,string,null |
Yes | Expires At |
id |
string |
Yes | Id |
organization_id |
string |
Yes | Organization Id |
ready_at |
one,string,null |
Yes | Ready At |
resolved_manifest_json |
object |
Yes | Resolved Manifest Json |
retention_policy_json |
object |
Yes | Retention Policy Json |
revision |
integer |
Yes | Revision |
revoked_at |
one,string,null |
Yes | Revoked At |
runner_environment_revision_id |
one,string,null |
Yes | Runner Environment Revision Id |
safety_policy_json |
object |
Yes | Safety Policy Json |
schema_version |
integer |
Yes | Schema Version |
source_metadata |
object |
No | Source Metadata |
source_metadata_json |
object |
Yes | Source Metadata Json |
status |
string |
Yes | Status |
updated_at |
string |
Yes | Updated At |
validation_json |
object |
Yes | Validation Json |
verify_environment_id |
string |
Yes | Verify Environment Id |
create
POST /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id}/provision
Operation ID: provision_api_v1_verify_environment_revision.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
Idempotency-Key |
header |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Existing provision operation returned for an idempotent replay
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
app_environment_id |
string |
Yes | |
app_release_id |
string |
Yes | |
blueprint_json |
object |
Yes | |
cleanup_state |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
digest |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
organization_id |
string |
Yes | |
ready_at |
string (date-time) |
Yes | |
resolved_manifest_json |
object |
Yes | |
retention_policy_json |
object |
Yes | |
revision |
integer |
Yes | |
revoked_at |
string (date-time) |
Yes | |
runner_environment_revision_id |
string |
Yes | |
safety_policy_json |
object |
Yes | |
schema_version |
integer |
Yes | |
source_metadata_json |
object |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
validation_json |
object |
Yes | |
verify_environment_id |
string |
Yes |
202: Provision operation accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
app_environment_id |
string |
Yes | |
app_release_id |
string |
Yes | |
blueprint_json |
object |
Yes | |
cleanup_state |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
digest |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
organization_id |
string |
Yes | |
ready_at |
string (date-time) |
Yes | |
resolved_manifest_json |
object |
Yes | |
retention_policy_json |
object |
Yes | |
revision |
integer |
Yes | |
revoked_at |
string (date-time) |
Yes | |
runner_environment_revision_id |
string |
Yes | |
safety_policy_json |
object |
Yes | |
schema_version |
integer |
Yes | |
source_metadata_json |
object |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
validation_json |
object |
Yes | |
verify_environment_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id}/revoke
Operation ID: revoke_api_v1_verify_environment_revision.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
Idempotency-Key |
header |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Existing revoke operation returned for an idempotent replay
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
app_environment_id |
string |
Yes | |
app_release_id |
string |
Yes | |
blueprint_json |
object |
Yes | |
cleanup_state |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
digest |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
organization_id |
string |
Yes | |
ready_at |
string (date-time) |
Yes | |
resolved_manifest_json |
object |
Yes | |
retention_policy_json |
object |
Yes | |
revision |
integer |
Yes | |
revoked_at |
string (date-time) |
Yes | |
runner_environment_revision_id |
string |
Yes | |
safety_policy_json |
object |
Yes | |
schema_version |
integer |
Yes | |
source_metadata_json |
object |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
validation_json |
object |
Yes | |
verify_environment_id |
string |
Yes |
202: Revocation accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
app_environment_id |
string |
Yes | |
app_release_id |
string |
Yes | |
blueprint_json |
object |
Yes | |
cleanup_state |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
digest |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
organization_id |
string |
Yes | |
ready_at |
string (date-time) |
Yes | |
resolved_manifest_json |
object |
Yes | |
retention_policy_json |
object |
Yes | |
revision |
integer |
Yes | |
revoked_at |
string (date-time) |
Yes | |
runner_environment_revision_id |
string |
Yes | |
safety_policy_json |
object |
Yes | |
schema_version |
integer |
Yes | |
source_metadata_json |
object |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
validation_json |
object |
Yes | |
verify_environment_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id}/validate
Operation ID: validate_api_v1_verify_environment_revision.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
Idempotency-Key |
header |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Environment revision validated
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
app_environment_id |
string |
Yes | |
app_release_id |
string |
Yes | |
blueprint_json |
object |
Yes | |
cleanup_state |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
digest |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
organization_id |
string |
Yes | |
ready_at |
string (date-time) |
Yes | |
resolved_manifest_json |
object |
Yes | |
retention_policy_json |
object |
Yes | |
revision |
integer |
Yes | |
revoked_at |
string (date-time) |
Yes | |
runner_environment_revision_id |
string |
Yes | |
safety_policy_json |
object |
Yes | |
schema_version |
integer |
Yes | |
source_metadata_json |
object |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
validation_json |
object |
Yes | |
verify_environment_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions
Operation ID: api_v1_verify_environment_revisions.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes | |
Idempotency-Key |
header |
string |
No |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
blueprint |
object |
Yes | |
dry_run |
boolean |
No | |
source_metadata |
object |
No |
Responses
200: Blueprint dry-run or idempotent replay
application/json
The response is object or object.
201: Immutable environment revision imported
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
app_environment_id |
string |
Yes | |
app_release_id |
string |
Yes | |
blueprint_json |
object |
Yes | |
cleanup_state |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
digest |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
organization_id |
string |
Yes | |
ready_at |
string (date-time) |
Yes | |
resolved_manifest_json |
object |
Yes | |
retention_policy_json |
object |
Yes | |
revision |
integer |
Yes | |
revoked_at |
string (date-time) |
Yes | |
runner_environment_revision_id |
string |
Yes | |
safety_policy_json |
object |
Yes | |
schema_version |
integer |
Yes | |
source_metadata_json |
object |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
validation_json |
object |
Yes | |
verify_environment_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id}
Operation ID: get_api_v1_organizations_organization_id_verify_environments_verify_environment_id_revisions_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
POST /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/revisions/{id}
Operation ID: api_v1_verify_environment_revision.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
Idempotency-Key |
header |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Existing destroy operation returned for an idempotent replay
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
app_environment_id |
string |
Yes | |
app_release_id |
string |
Yes | |
blueprint_json |
object |
Yes | |
cleanup_state |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
digest |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
organization_id |
string |
Yes | |
ready_at |
string (date-time) |
Yes | |
resolved_manifest_json |
object |
Yes | |
retention_policy_json |
object |
Yes | |
revision |
integer |
Yes | |
revoked_at |
string (date-time) |
Yes | |
runner_environment_revision_id |
string |
Yes | |
safety_policy_json |
object |
Yes | |
schema_version |
integer |
Yes | |
source_metadata_json |
object |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
validation_json |
object |
Yes | |
verify_environment_id |
string |
Yes |
202: Teardown accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
app_environment_id |
string |
Yes | |
app_release_id |
string |
Yes | |
blueprint_json |
object |
Yes | |
cleanup_state |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
digest |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
organization_id |
string |
Yes | |
ready_at |
string (date-time) |
Yes | |
resolved_manifest_json |
object |
Yes | |
retention_policy_json |
object |
Yes | |
revision |
integer |
Yes | |
revoked_at |
string (date-time) |
Yes | |
runner_environment_revision_id |
string |
Yes | |
safety_policy_json |
object |
Yes | |
schema_version |
integer |
Yes | |
source_metadata_json |
object |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
validation_json |
object |
Yes | |
verify_environment_id |
string |
Yes |