VerifyMergeRequest
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/merge_requests/{id}/rerun |
create |
PR verification response |
POST |
/api/v1/organizations/{organization_id}/verify/merge_requests |
create |
PR verification response |
POST |
/api/v1/organizations/{organization_id}/verify/merge_requests/preview |
create |
PR verification response |
GET |
/api/v1/organizations/{organization_id}/verify/merge_requests/{id} |
load |
PR verification response |
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:
verify_merge_request, err := client.VerifyMergeRequest(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(verify_merge_request)
created, err := client.VerifyMergeRequest(nil).Create(map[string]any{"organization_id": "example", "idempotency_key": "example", "number": 1}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local verify_merge_request, err = client:VerifyMergeRequest():load({ id = "example_id", organization_id = "example" })
local created, err = client:VerifyMergeRequest():create({ organization_id = "example", idempotency_key = "example", number = 1 })
PHP
Construct client as shown in the PHP setup, then call the operations:
$verify_merge_request = $client->VerifyMergeRequest()->load(["id" => "example_id", "organization_id" => "example"]);
$created = $client->VerifyMergeRequest()->create(["organization_id" => "example", "idempotency_key" => "example", "number" => 1]);
Python
Construct client as shown in the Python setup, then call the operations:
verify_merge_request = client.VerifyMergeRequest().load({"id": "example_id", "organization_id": "example"})
created = client.VerifyMergeRequest().create({ "organization_id": "example", "idempotency_key": "example", "number": 1 })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
verify_merge_request = client.VerifyMergeRequest.load({ "id" => "example_id", "organization_id" => "example" })
created = client.VerifyMergeRequest.create({ "organization_id" => "example", "idempotency_key" => "example", "number" => 1 })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const verify_merge_request = await client.VerifyMergeRequest().load({ id: "example_id", organization_id: "example" })
const created = await client.VerifyMergeRequest().create({ organization_id: "example", idempotency_key: "example", number: 1 })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
available_tests |
array |
Yes | All active saved scenarios in the configured project, including scenarios outside the automatic selection. |
base_sha |
string |
Yes | Base Sha |
branch |
string |
No | Exact deployed source branch; refused if it differs from the canonical request branch. |
comment_url |
one,string,null |
Yes | Comment Url |
current_run |
any |
No | Latest verification request if it matches the current head and base, independent of history pagination. |
draft |
boolean |
Yes | Draft |
findings |
array |
Yes | Findings |
github_repository |
one,string,null |
Yes | GitHub owner/repository associated with this pull request. |
github_url |
one,string,null |
Yes | Github Url |
head_sha |
string |
Yes | If supplied, refuse to create a run unless this is the current PR head. |
id |
string |
Yes | Id |
idempotency_key |
string |
Yes | Idempotency Key |
number |
integer |
Yes | Number |
pagination |
object |
Yes | Pagination |
permissions |
object |
Yes | Permissions |
preview_cleanup_ready |
boolean |
Yes | The source is closed or merged and unfinished Scenario execution and Discovery have stopped. |
preview_url |
one,string,null |
No | Most recently supplied preview URL for the current head commit, retained across verification attempts. |
project |
any |
No | Project |
project_id |
one,string,null |
Yes | Composal project slug or public ID for PR preview environments. |
project_slug |
one,string,null |
Yes | Project Slug |
provider |
string |
Yes | Provider |
pull_request |
object |
Yes | Pull Request |
repository_id |
string |
Yes | Repository Id |
request_label |
string |
Yes | Request Label |
requested_run_id |
one,string,null |
Yes | Requested Run Id |
runs |
array |
Yes | Runs |
source_branch |
one,string,null |
Yes | Source Branch |
source_repository |
one,string,null |
Yes | Source Repository |
source_url |
one,string,null |
Yes | Source Url |
state |
string |
Yes | State |
title |
string |
Yes | Title |
updated_at |
string |
Yes | Updated At |
web_path |
string |
Yes | Web Path |
create
POST /api/v1/organizations/{organization_id}/verify/merge_requests/{id}/rerun
Operation ID: rerun_api_v1_merge_request.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
head_sha |
string |
No | If supplied, refuse to create a run unless this is the current PR head. |
idempotency_key |
string |
Yes | |
scenario_ids |
array of string |
No | Manually run these available project scenarios instead of automatic relevance selection. |
Responses
200: PR verification response
application/json
The response is object and object.
202: PR verification response
application/json
The response is object and object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verify/merge_requests
Operation ID: api_v1_merge_requests.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
branch |
string |
No | Exact deployed source branch; refused if it differs from the canonical request branch. |
head_sha |
string |
No | If supplied, refuse to create a run unless this is the current PR head. |
idempotency_key |
string |
Yes | |
number |
integer |
Yes | |
project_id |
string |
No | Composal project slug or public ID for PR preview environments. Defaults to the configured template project. Cannot reassign a tracked PR. |
repository_id |
string |
No |
Responses
200: PR verification response
application/json
The response is object and object.
202: PR verification response
application/json
The response is object and object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verify/merge_requests/preview
Operation ID: preview_api_v1_merge_requests.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
branch |
string |
No | Exact deployed source branch; refused if it differs from the canonical request branch. |
environment |
string |
No | |
head_sha |
string |
Yes | |
imessage_number |
string |
No | International destination of this exact deployed commit. May accompany preview_url. |
no_preview |
enum: true |
No | CI built no preview because this commit changes nothing a preview serves. The commit's waiting run is skipped instead of timing out as blocked. |
number |
integer |
Yes | |
preview_url |
string (uri) |
No | Deployed URL for this exact PR head. Requires an external Verify template. Mutually exclusive with environment. |
project_id |
string |
No | Composal project slug or public ID for PR preview environments. Defaults to the configured template project. Cannot reassign a tracked PR. |
repository_id |
string |
No |
Responses
200: PR verification response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
app_preview_id |
string |
Yes | |
base_sha |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
display_state |
string |
Yes | |
environment_path |
string |
No | |
execution_path |
string |
Yes | |
head_sha |
string |
Yes | |
id |
string |
Yes | |
imessage_number |
string |
No | |
messaging_source |
object |
No | |
reason |
string |
Yes | |
run_id |
string |
Yes | |
run_progress |
object |
No | |
run_progress.finished |
integer |
Yes | |
run_progress.planned |
integer |
Yes | |
run_progress.planning |
integer |
Yes | |
run_progress.running |
integer |
Yes | |
run_progress.total |
integer |
Yes | |
scenario_writing_summary |
object |
Yes | |
scenario_writing_summary.candidates |
array of object |
Yes | |
scenario_writing_summary.candidates[].application_error |
string |
Yes | |
scenario_writing_summary.candidates[].applied_at |
string (date-time) |
Yes | |
scenario_writing_summary.candidates[].name |
string |
Yes | |
scenario_writing_summary.candidates[].reason |
string |
Yes | |
scenario_writing_summary.candidates[].result_path |
string |
Yes | |
scenario_writing_summary.candidates[].revision_count |
integer |
Yes | |
scenario_writing_summary.candidates[].state |
string |
Yes | |
scenario_writing_summary.message |
string |
Yes | |
scenario_writing_summary.progress |
object |
Yes | |
scenario_writing_summary.progress.fixing |
integer |
Yes | |
scenario_writing_summary.progress.ready |
integer |
Yes | |
scenario_writing_summary.progress.total |
integer |
Yes | |
scenario_writing_summary.ready |
boolean |
Yes | |
scenario_writing_summary.status |
string |
Yes | |
selection_json |
object |
Yes | |
selection_json.change_impact |
object |
No | |
selection_json.change_impact.kind |
enum: browser, backend_only, uncertain |
Yes | |
selection_json.change_impact.reason |
string |
Yes | |
selection_json.comparison |
object |
No | |
selection_json.comparison.base_sha |
string |
Yes | |
selection_json.comparison.head_sha |
string |
Yes | |
selection_json.comparison.mode |
enum: incremental, full_pr |
Yes | |
selection_json.confidence |
string |
Yes | |
selection_json.confidence_threshold |
number |
No | |
selection_json.context_mode |
enum: patches, filenames |
No | |
selection_json.excluded |
array of object |
Yes | |
selection_json.excluded[].id |
string |
Yes | |
selection_json.excluded[].name |
string |
Yes | |
selection_json.excluded[].reason |
string |
No | |
selection_json.excluded[].version |
integer |
No | |
selection_json.fallback |
boolean |
Yes | |
selection_json.reused |
array of object |
No | |
selection_json.reused[].execution_path |
string |
Yes | |
selection_json.reused[].id |
string |
Yes | |
selection_json.reused[].name |
string |
Yes | |
selection_json.reused[].reason |
string |
Yes | |
selection_json.reused[].run_id |
string |
Yes | |
selection_json.reused[].version |
integer |
Yes | |
selection_json.selected |
array of object |
Yes | |
selection_json.selected[].confidence |
number |
No | |
selection_json.selected[].id |
string |
Yes | |
selection_json.selected[].name |
string |
Yes | |
selection_json.selected[].reason |
string |
Yes | |
selection_json.selected[].version |
integer |
Yes | |
selection_json.source |
string |
Yes | |
selection_json.target_scope |
enum: test_environment |
No | |
state |
string |
Yes | |
target_url |
string |
Yes | |
verify_environment_revision_id |
string |
Yes |
202: PR verification response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
app_preview_id |
string |
Yes | |
base_sha |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
display_state |
string |
Yes | |
environment_path |
string |
No | |
execution_path |
string |
Yes | |
head_sha |
string |
Yes | |
id |
string |
Yes | |
imessage_number |
string |
No | |
messaging_source |
object |
No | |
reason |
string |
Yes | |
run_id |
string |
Yes | |
run_progress |
object |
No | |
run_progress.finished |
integer |
Yes | |
run_progress.planned |
integer |
Yes | |
run_progress.planning |
integer |
Yes | |
run_progress.running |
integer |
Yes | |
run_progress.total |
integer |
Yes | |
scenario_writing_summary |
object |
Yes | |
scenario_writing_summary.candidates |
array of object |
Yes | |
scenario_writing_summary.candidates[].application_error |
string |
Yes | |
scenario_writing_summary.candidates[].applied_at |
string (date-time) |
Yes | |
scenario_writing_summary.candidates[].name |
string |
Yes | |
scenario_writing_summary.candidates[].reason |
string |
Yes | |
scenario_writing_summary.candidates[].result_path |
string |
Yes | |
scenario_writing_summary.candidates[].revision_count |
integer |
Yes | |
scenario_writing_summary.candidates[].state |
string |
Yes | |
scenario_writing_summary.message |
string |
Yes | |
scenario_writing_summary.progress |
object |
Yes | |
scenario_writing_summary.progress.fixing |
integer |
Yes | |
scenario_writing_summary.progress.ready |
integer |
Yes | |
scenario_writing_summary.progress.total |
integer |
Yes | |
scenario_writing_summary.ready |
boolean |
Yes | |
scenario_writing_summary.status |
string |
Yes | |
selection_json |
object |
Yes | |
selection_json.change_impact |
object |
No | |
selection_json.change_impact.kind |
enum: browser, backend_only, uncertain |
Yes | |
selection_json.change_impact.reason |
string |
Yes | |
selection_json.comparison |
object |
No | |
selection_json.comparison.base_sha |
string |
Yes | |
selection_json.comparison.head_sha |
string |
Yes | |
selection_json.comparison.mode |
enum: incremental, full_pr |
Yes | |
selection_json.confidence |
string |
Yes | |
selection_json.confidence_threshold |
number |
No | |
selection_json.context_mode |
enum: patches, filenames |
No | |
selection_json.excluded |
array of object |
Yes | |
selection_json.excluded[].id |
string |
Yes | |
selection_json.excluded[].name |
string |
Yes | |
selection_json.excluded[].reason |
string |
No | |
selection_json.excluded[].version |
integer |
No | |
selection_json.fallback |
boolean |
Yes | |
selection_json.reused |
array of object |
No | |
selection_json.reused[].execution_path |
string |
Yes | |
selection_json.reused[].id |
string |
Yes | |
selection_json.reused[].name |
string |
Yes | |
selection_json.reused[].reason |
string |
Yes | |
selection_json.reused[].run_id |
string |
Yes | |
selection_json.reused[].version |
integer |
Yes | |
selection_json.selected |
array of object |
Yes | |
selection_json.selected[].confidence |
number |
No | |
selection_json.selected[].id |
string |
Yes | |
selection_json.selected[].name |
string |
Yes | |
selection_json.selected[].reason |
string |
Yes | |
selection_json.selected[].version |
integer |
Yes | |
selection_json.source |
string |
Yes | |
selection_json.target_scope |
enum: test_environment |
No | |
state |
string |
Yes | |
target_url |
string |
Yes | |
verify_environment_revision_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/verify/merge_requests/{id}
Operation ID: api_v1_merge_request.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
page |
query |
integer |
No |
Responses
200: PR verification response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
available_tests |
array of object |
Yes | All active saved scenarios in the configured project, including scenarios outside the automatic selection. |
available_tests[].id |
string |
Yes | |
available_tests[].name |
string |
Yes | |
current_run |
object or null |
No | Latest verification request if it matches the current head and base, independent of history pagination. |
findings |
array of object and object |
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 | |
preview_cleanup_ready |
boolean |
Yes | The source is closed or merged and unfinished Scenario execution and Discovery have stopped. Worker and application cleanup do not hold its web runtime. |
preview_url |
string,null |
No | Most recently supplied preview URL for the current head commit, retained across verification attempts. |
project |
object or null |
No | |
pull_request |
object |
Yes | |
pull_request.base_sha |
string |
Yes | |
pull_request.comment_url |
string |
Yes | |
pull_request.draft |
boolean |
Yes | |
pull_request.github_repository |
string |
Yes | GitHub owner/repository associated with this pull request. |
pull_request.github_url |
string |
Yes | |
pull_request.head_sha |
string |
Yes | |
pull_request.id |
string |
Yes | |
pull_request.number |
integer |
Yes | |
pull_request.project_id |
string |
Yes | |
pull_request.project_slug |
string |
Yes | |
pull_request.provider |
enum: github, gitlab |
Yes | |
pull_request.repository_id |
string |
Yes | |
pull_request.request_label |
string |
Yes | |
pull_request.source_branch |
string |
Yes | |
pull_request.source_repository |
string |
Yes | |
pull_request.source_url |
string |
Yes | |
pull_request.state |
string |
Yes | |
pull_request.title |
string |
Yes | |
pull_request.updated_at |
string (date-time) |
Yes | |
pull_request.web_path |
string |
Yes | |
runs |
array of object |
Yes | |
runs[].app_preview_id |
string |
Yes | |
runs[].base_sha |
string |
Yes | |
runs[].created_at |
string (date-time) |
Yes | |
runs[].display_state |
string |
Yes | |
runs[].environment_path |
string |
No | |
runs[].execution_path |
string |
Yes | |
runs[].head_sha |
string |
Yes | |
runs[].id |
string |
Yes | |
runs[].imessage_number |
string |
No | |
runs[].messaging_source |
object |
No | |
runs[].reason |
string |
Yes | |
runs[].run_id |
string |
Yes | |
runs[].run_progress |
object |
No | |
runs[].run_progress.finished |
integer |
Yes | |
runs[].run_progress.planned |
integer |
Yes | |
runs[].run_progress.planning |
integer |
Yes | |
runs[].run_progress.running |
integer |
Yes | |
runs[].run_progress.total |
integer |
Yes | |
runs[].scenario_writing_summary |
object |
Yes | |
runs[].scenario_writing_summary.candidates |
array of object |
Yes | |
runs[].scenario_writing_summary.candidates[].application_error |
string |
Yes | |
runs[].scenario_writing_summary.candidates[].applied_at |
string (date-time) |
Yes | |
runs[].scenario_writing_summary.candidates[].name |
string |
Yes | |
runs[].scenario_writing_summary.candidates[].reason |
string |
Yes | |
runs[].scenario_writing_summary.candidates[].result_path |
string |
Yes | |
runs[].scenario_writing_summary.candidates[].revision_count |
integer |
Yes | |
runs[].scenario_writing_summary.candidates[].state |
string |
Yes | |
runs[].scenario_writing_summary.message |
string |
Yes | |
runs[].scenario_writing_summary.progress |
object |
Yes | |
runs[].scenario_writing_summary.progress.fixing |
integer |
Yes | |
runs[].scenario_writing_summary.progress.ready |
integer |
Yes | |
runs[].scenario_writing_summary.progress.total |
integer |
Yes | |
runs[].scenario_writing_summary.ready |
boolean |
Yes | |
runs[].scenario_writing_summary.status |
string |
Yes | |
runs[].selection_json |
object |
Yes | |
runs[].selection_json.change_impact |
object |
No | |
runs[].selection_json.change_impact.kind |
enum: browser, backend_only, uncertain |
Yes | |
runs[].selection_json.change_impact.reason |
string |
Yes | |
runs[].selection_json.comparison |
object |
No | |
runs[].selection_json.comparison.base_sha |
string |
Yes | |
runs[].selection_json.comparison.head_sha |
string |
Yes | |
runs[].selection_json.comparison.mode |
enum: incremental, full_pr |
Yes | |
runs[].selection_json.confidence |
string |
Yes | |
runs[].selection_json.confidence_threshold |
number |
No | |
runs[].selection_json.context_mode |
enum: patches, filenames |
No | |
runs[].selection_json.excluded |
array of object |
Yes | |
runs[].selection_json.excluded[].id |
string |
Yes | |
runs[].selection_json.excluded[].name |
string |
Yes | |
runs[].selection_json.excluded[].reason |
string |
No | |
runs[].selection_json.excluded[].version |
integer |
No | |
runs[].selection_json.fallback |
boolean |
Yes | |
runs[].selection_json.reused |
array of object |
No | |
runs[].selection_json.reused[].execution_path |
string |
Yes | |
runs[].selection_json.reused[].id |
string |
Yes | |
runs[].selection_json.reused[].name |
string |
Yes | |
runs[].selection_json.reused[].reason |
string |
Yes | |
runs[].selection_json.reused[].run_id |
string |
Yes | |
runs[].selection_json.reused[].version |
integer |
Yes | |
runs[].selection_json.selected |
array of object |
Yes | |
runs[].selection_json.selected[].confidence |
number |
No | |
runs[].selection_json.selected[].id |
string |
Yes | |
runs[].selection_json.selected[].name |
string |
Yes | |
runs[].selection_json.selected[].reason |
string |
Yes | |
runs[].selection_json.selected[].version |
integer |
Yes | |
runs[].selection_json.source |
string |
Yes | |
runs[].selection_json.target_scope |
enum: test_environment |
No | |
runs[].state |
string |
Yes | |
runs[].target_url |
string |
Yes | |
runs[].verify_environment_revision_id |
string |
Yes |