API

ProjectPrTesting

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}/pages/pr_testing load ProjectPrTestingPage

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_pr_testing, err := client.ProjectPrTesting(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(project_pr_testing)

Lua

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

local project_pr_testing, err = client:ProjectPrTesting():load({ id = "example_id", organization_id = "example" })

PHP

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

$project_pr_testing = $client->ProjectPrTesting()->load(["id" => "example_id", "organization_id" => "example"]);

Python

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

project_pr_testing = client.ProjectPrTesting().load({"id": "example_id", "organization_id": "example"})

Ruby

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

project_pr_testing = client.ProjectPrTesting.load({ "id" => "example_id", "organization_id" => "example" })

TypeScript

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

const project_pr_testing = await client.ProjectPrTesting().load({ id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
id string No Id
project object Yes Project
pull_request_options object Yes Pull Request Options

load

GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/pages/pr_testing

Operation ID: api_v1_verification_project_pages_pr_testing.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
repository_id query string No
source_repository query string No Source namespace and repository name, scoped to this project; repository_id disambiguates identical source paths
repository_search query string No
provider query enum: github, gitlab No

Responses

200: ProjectPrTestingPage

application/json

Property Type Required Description
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
pull_request_options object Yes
pull_request_options.ci_preview object Yes The latest preview the project's CI handed over, while the saved setting uses CI
pull_request_options.ci_preview.received_at string (date-time) Yes
pull_request_options.ci_preview.request_number integer Yes
pull_request_options.configured_repository object Yes
pull_request_options.environments array of object Yes
pull_request_options.environments[].external boolean Yes
pull_request_options.environments[].id string Yes
pull_request_options.environments[].name string Yes
pull_request_options.environments[].previews array of enum: hosting, ci, composal Yes The previews answers this environment can sign in to
pull_request_options.environments[].repository_id string Yes
pull_request_options.environments[].test_accounts array of string Yes Names of the test accounts this environment signs in with
pull_request_options.hosting_presets array of object Yes Hosting services that build PR previews and the setup answers each needs
pull_request_options.hosting_presets[].answers object Yes
pull_request_options.hosting_presets[].answers.bots array of string No
pull_request_options.hosting_presets[].answers.deployment string No
pull_request_options.hosting_presets[].answers.link_pattern string No
pull_request_options.hosting_presets[].answers.links string No
pull_request_options.hosting_presets[].name string Yes
pull_request_options.messaging_enabled boolean Yes
pull_request_options.permissions object Yes
pull_request_options.permissions.manage boolean Yes
pull_request_options.preview_profiles array of object Yes
pull_request_options.preview_profiles[].id string Yes
pull_request_options.preview_profiles[].name string Yes
pull_request_options.preview_profiles[].repository_id string Yes
pull_request_options.preview_profiles[].services array of object Yes
pull_request_options.preview_profiles[].services[].id string Yes
pull_request_options.preview_profiles[].services[].name string Yes
pull_request_options.project_repositories array of object Yes
pull_request_options.project_repositories[].automatic_testing_enabled boolean Yes
pull_request_options.project_repositories[].can_configure boolean Yes
pull_request_options.project_repositories[].configured boolean Yes
pull_request_options.project_repositories[].id string Yes
pull_request_options.project_repositories[].name string Yes
pull_request_options.project_repositories[].preview_source string Yes
pull_request_options.project_repositories[].provider enum: github, gitlab Yes
pull_request_options.project_repositories[].source_importing boolean Yes The source is still importing (GitLab): linked, but PR testing can't be configured until it finishes.
pull_request_options.project_repositories[].source_repository string Yes
pull_request_options.repositories array of object Yes
pull_request_options.repositories[].associated boolean Yes
pull_request_options.repositories[].automatic_testing_enabled boolean Yes
pull_request_options.repositories[].id string Yes
pull_request_options.repositories[].name string Yes
pull_request_options.repositories[].provider enum: github, gitlab Yes
pull_request_options.repositories[].source_host string No
pull_request_options.repositories[].source_repository string Yes
pull_request_options.selected_repository object Yes
pull_request_options.settings array of object and object Yes
pull_request_options.settings[].imessage_comment_prefix string Yes
pull_request_options.settings[].imessage_number string Yes International destination number; blank or null clears it on an added environment.
pull_request_options.settings[].imessage_number_source enum: configured, deployment Yes
pull_request_options.settings[].messaging_tester_number string Yes One configured tester number. Copied to each preview; may be overridden locally before preparation.
pull_request_options.setup object Yes The project's saved setup as answers, when it has one.
pull_request_options.setup_defaults object Yes The answers a new setup starts from
pull_request_options.setup_defaults.demo_videos boolean Yes
pull_request_options.setup_defaults.deployment string Yes
pull_request_options.setup_defaults.limits object Yes
pull_request_options.setup_defaults.limits.max_minutes number Yes Longest a run may take.
pull_request_options.setup_defaults.limits.skip_paths array of string Yes Relative file globs; a change touching only these is not tested.
pull_request_options.setup_defaults.pr_check boolean Yes
pull_request_options.setup_defaults.trigger_label string Yes The label a label trigger starts with
pull_request_options.setup_defaults.triggers object Yes When runs start. GitHub only; GitLab runs on every MR update out of draft.
pull_request_options.setup_defaults.triggers.comment boolean Yes Run on /verify comments.
pull_request_options.setup_defaults.triggers.label string Yes Run when this label is added; null turns label runs off.
pull_request_options.setup_defaults.triggers.push boolean Yes Run on every push to an open PR.
pull_request_options.setup_defaults.triggers.ready boolean Yes Run when a draft PR is marked ready.
pull_request_options.setup_defaults.write_scenarios boolean Yes Draft and validate focused scenarios for each change on its preview. Off by default.
pull_request_options.tester_numbers array of string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway