EnvironmentTestAccount
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}/verify/environments/{verify_environment_id}/test_accounts |
list |
Login personas and write-only credential configuration status |
PATCH |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/test_accounts/{persona} |
patch |
Test account credentials configured without returning values |
PUT |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/test_accounts/{persona} |
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:
environment_test_accounts, err := client.EnvironmentTestAccount(nil).List(map[string]any{"environment_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(environment_test_accounts)
updated, err := client.EnvironmentTestAccount(nil).Update(map[string]any{"environment_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.EnvironmentTestAccount(nil).Patch(map[string]any{"environment_id": "example", "organization_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 environment_test_accounts, err = client:EnvironmentTestAccount():list({ environment_id = "example", organization_id = "example" })
local updated, err = client:EnvironmentTestAccount():update({ environment_id = "example", organization_id = "example" })
local patched, err = client:EnvironmentTestAccount():patch({ environment_id = "example", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$environment_test_accounts = $client->EnvironmentTestAccount()->list(["environment_id" => "example", "organization_id" => "example"]);
$updated = $client->EnvironmentTestAccount()->update(["environment_id" => "example", "organization_id" => "example"]);
$patched = $client->EnvironmentTestAccount()->patch(["environment_id" => "example", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
environment_test_accounts = client.EnvironmentTestAccount().list({"environment_id": "example", "organization_id": "example"})
updated = client.EnvironmentTestAccount().update({"environment_id": "example", "organization_id": "example"})
patched = client.EnvironmentTestAccount().patch({"environment_id": "example", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
environment_test_accounts = client.EnvironmentTestAccount.list({ "environment_id" => "example", "organization_id" => "example" })
updated = client.EnvironmentTestAccount.update({ "environment_id" => "example", "organization_id" => "example" })
patched = client.EnvironmentTestAccount.patch({ "environment_id" => "example", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const environment_test_accounts = await client.EnvironmentTestAccount().list({ environment_id: "example", organization_id: "example" })
const updated = await client.EnvironmentTestAccount().update({ environment_id: "example", organization_id: "example" })
const patched = await client.EnvironmentTestAccount().patch({ environment_id: "example", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
configured |
boolean |
Yes | Configured |
credentials |
array |
Yes | Credentials |
id |
string |
No | Id |
persona |
string |
Yes | Persona |
revision_id |
string |
Yes | Revision Id |
role |
string |
Yes | Role |
tenant |
string |
Yes | Tenant |
list
GET /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/test_accounts
Operation ID: api_v1_verify_environment_test_accounts.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes |
Responses
200: Login personas and write-only credential configuration status
application/json
| Property | Type | Required | Description |
|---|---|---|---|
accounts |
array of object |
Yes | |
accounts[].configured |
boolean |
Yes | |
accounts[].credentials |
array of object |
Yes | |
accounts[].credentials[].configured |
boolean |
Yes | |
accounts[].credentials[].key |
string |
Yes | |
accounts[].credentials[].kind |
enum: literal, totp_seed |
Yes | |
accounts[].credentials[].pinned |
boolean |
Yes | |
accounts[].credentials[].secret_id |
string |
Yes | |
accounts[].credentials[].source |
string |
Yes | |
accounts[].persona |
string |
Yes | |
accounts[].role |
string |
Yes | |
accounts[].tenant |
string |
Yes | |
revision_id |
string |
Yes | |
target_available |
boolean |
Yes | |
unavailable_reason |
string |
No |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/test_accounts/{persona}
Operation ID: api_v1_verify_environment_test_account.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes | |
persona |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
credentials |
object |
Yes | |
revision_id |
string |
Yes |
Responses
200: Test account credentials configured without returning values
application/json
| Property | Type | Required | Description |
|---|---|---|---|
configured |
boolean |
Yes | |
credentials |
array of object |
Yes | |
credentials[].configured |
boolean |
Yes | |
credentials[].key |
string |
Yes | |
credentials[].kind |
enum: literal, totp_seed |
Yes | |
credentials[].pinned |
boolean |
Yes | |
credentials[].secret_id |
string |
Yes | |
credentials[].source |
string |
Yes | |
persona |
string |
Yes | |
role |
string |
Yes | |
tenant |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/test_accounts/{persona}
Operation ID: put_api_v1_organizations_organization_id_verify_environments_verify_environment_id_test_accounts_persona_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes | |
persona |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.