API

ProjectFixture

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}/fixtures create The project already held these bytes
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures list Files, assignment choices and permissions
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures/{id} load The fixture and a signed URL that expires within minutes
PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures/{id} patch Updated file
DELETE /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures/{id} remove Archived; existing Scenario and run attachments remain
PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures/{id} update Updated file

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_fixtures, err := client.ProjectFixture(nil).List(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(project_fixtures)
project_fixture, err := client.ProjectFixture(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(project_fixture)
created, err := client.ProjectFixture(nil).Create(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.ProjectFixture(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.ProjectFixture(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.ProjectFixture(nil).Remove(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example", "version": 1}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local project_fixtures, err = client:ProjectFixture():list({ organization_id = "example", project_id = "example" })
local project_fixture, err = client:ProjectFixture():load({ id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:ProjectFixture():create({ organization_id = "example", project_id = "example" })
local updated, err = client:ProjectFixture():update({ id = "example_id", organization_id = "example", project_id = "example" })
local patched, err = client:ProjectFixture():patch({ id = "example_id", organization_id = "example", project_id = "example" })
local removed, err = client:ProjectFixture():remove({ id = "example_id", organization_id = "example", project_id = "example", version = 1 })

PHP

Construct client as shown in the PHP setup, then call the operations:

$project_fixtures = $client->ProjectFixture()->list(["organization_id" => "example", "project_id" => "example"]);
$project_fixture = $client->ProjectFixture()->load(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->ProjectFixture()->create(["organization_id" => "example", "project_id" => "example"]);
$updated = $client->ProjectFixture()->update(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$patched = $client->ProjectFixture()->patch(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$client->ProjectFixture()->remove(["id" => "example_id", "organization_id" => "example", "project_id" => "example", "version" => 1]);

Python

Construct client as shown in the Python setup, then call the operations:

project_fixtures = client.ProjectFixture().list({"organization_id": "example", "project_id": "example"})
project_fixture = client.ProjectFixture().load({"id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.ProjectFixture().create({ "organization_id": "example", "project_id": "example" })
updated = client.ProjectFixture().update({"id": "example_id", "organization_id": "example", "project_id": "example"})
patched = client.ProjectFixture().patch({"id": "example_id", "organization_id": "example", "project_id": "example"})
client.ProjectFixture().remove({"id": "example_id", "organization_id": "example", "project_id": "example", "version": 1})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

project_fixtures = client.ProjectFixture.list({ "organization_id" => "example", "project_id" => "example" })
project_fixture = client.ProjectFixture.load({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.ProjectFixture.create({ "organization_id" => "example", "project_id" => "example" })
updated = client.ProjectFixture.update({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
patched = client.ProjectFixture.patch({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
client.ProjectFixture.remove({ "id" => "example_id", "organization_id" => "example", "project_id" => "example", "version" => 1 })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const project_fixtures = await client.ProjectFixture().list({ organization_id: "example", project_id: "example" })
const project_fixture = await client.ProjectFixture().load({ id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.ProjectFixture().create({ organization_id: "example", project_id: "example" })
const updated = await client.ProjectFixture().update({ id: "example_id", organization_id: "example", project_id: "example" })
const patched = await client.ProjectFixture().patch({ id: "example_id", organization_id: "example", project_id: "example" })
await client.ProjectFixture().remove({ id: "example_id", organization_id: "example", project_id: "example", version: 1 })

Fields

Field Type Required Description
assignments array Yes Every assignment with its target's name, including targets archived or disabled since.
byte_size integer Yes Byte Size
content_type string Yes Content Type
credential_ids array Yes Credential Ids
environment_ids array Yes Environment Ids
id string No Id
lock_version integer Yes Lock Version
name string Yes Name
persona_ids array Yes Persona Ids
sha256 string Yes Sha256
url string Yes Url
version integer Yes Version

create

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures

Operation ID: post_api_v1_organizations_organization_id_verification_projects_project_id_fixtures.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes

Request body

application/json

The request body is object.

multipart/form-data

Property Type Required Description
file string (binary) Yes At most 25 MiB

Responses

200: The project already held these bytes

application/json

Property Type Required Description
byte_size integer Yes
sha256 string Yes
201: Stored new bytes

application/json

Property Type Required Description
byte_size integer Yes
sha256 string Yes
401: Unauthorized
403: Only organization administrators can upload fixtures
404: Not found
422: Unprocessable entity
502: Bad gateway

list

GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures

Operation ID: api_v1_verification_project_fixtures.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
q query string No
page query integer No
persona_id query string No Only files assigned to this persona
credential_id query string No Only files assigned to this credential
environment_id query string No Only files assigned to this environment

Responses

200: Files, assignment choices and permissions

application/json

Property Type Required Description
credentials array of object Yes
credentials[].id string Yes
credentials[].name string Yes
environments array of object Yes
environments[].id string Yes
environments[].name string Yes
fixtures array of object Yes
fixtures[].assignments array of object Yes Every assignment with its target's name, including targets archived or disabled since.
fixtures[].assignments[].id string Yes
fixtures[].assignments[].kind enum: persona, credential, environment Yes
fixtures[].assignments[].name string Yes
fixtures[].byte_size integer Yes
fixtures[].content_type string Yes
fixtures[].credential_ids array of string Yes
fixtures[].environment_ids array of string Yes
fixtures[].lock_version integer Yes
fixtures[].name string Yes
fixtures[].persona_ids array of string Yes
fixtures[].sha256 string Yes
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
permissions object Yes
permissions.manage boolean Yes
personas array of object Yes
personas[].id string Yes
personas[].name string 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
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures/{id}

Operation ID: api_v1_verification_project_fixture.

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: The fixture and a signed URL that expires within minutes

application/json

Property Type Required Description
byte_size integer Yes
sha256 string Yes
url string (uri) Yes
401: Unauthorized
403: Forbidden
404: This project holds no bytes with that sha256
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures/{id}

Operation ID: patch_api_v1_organizations_organization_id_verification_projects_project_id_fixtures_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 array of string No
environment_ids array of string No
name string No
persona_ids array of string No
version integer Yes

Responses

200: Updated file

application/json

Property Type Required Description
assignments array of object Yes Every assignment with its target's name, including targets archived or disabled since.
assignments[].id string Yes
assignments[].kind enum: persona, credential, environment Yes
assignments[].name string Yes
byte_size integer Yes
content_type string Yes
credential_ids array of string Yes
environment_ids array of string Yes
lock_version integer Yes
name string Yes
persona_ids array of string Yes
sha256 string Yes
401: Unauthorized
403: Forbidden
404: Not found
409: Reload the changed file before editing
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures/{id}

Operation ID: delete_api_v1_organizations_organization_id_verification_projects_project_id_fixtures_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
version query integer Yes

Responses

204: Archived; existing Scenario and run attachments remain
409: Reload the changed file before archiving

update

PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/fixtures/{id}

Operation ID: put_api_v1_organizations_organization_id_verification_projects_project_id_fixtures_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 array of string No
environment_ids array of string No
name string No
persona_ids array of string No
version integer Yes

Responses

200: Updated file

application/json

Property Type Required Description
assignments array of object Yes Every assignment with its target's name, including targets archived or disabled since.
assignments[].id string Yes
assignments[].kind enum: persona, credential, environment Yes
assignments[].name string Yes
byte_size integer Yes
content_type string Yes
credential_ids array of string Yes
environment_ids array of string Yes
lock_version integer Yes
name string Yes
persona_ids array of string Yes
sha256 string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway