API

VcChange

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/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/abandon create Abandoned change and any directly orphaned changes
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/accept create Recorded vote. Reread the change page for its updated state
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/fold create The absorbing change with its new patchset, the folded change, and the changes reparented onto the absorber. For dry_run, the plan
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/github_projection create Success
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/ready create Change marked ready
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/retry_ci create Existing retries for this request
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{change_id}/transcript_chat create A stateless answer. Accept text/event-stream for start, delta (text), done, and error (message) SSE events
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/submit create Success
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/submit_ref create Success
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/sync create Created or updated change outcomes
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes list One page of change summaries, plus status counts for the whole filtered scope
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id} load Change detail, canonical product path, relation chain, target state, sync preview, and landing closure
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/ci load Current checks, timing history, and retryable runs
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{change_id}/diff load Selected comparison, picker options, and persisted diff files
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/github_projection load Current per-change GitHub projection state
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/state load Uncached accepted revision metadata without backend or review-page reads
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/submit_preview load Resolved Git revision, target, and observed review lease
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/lookup load Ordered known and missing JJ change identities, or the canonical first change for a legacy stack
PATCH /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/description update Detailed canonical change

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:

vc_changes, err := client.VcChange(nil).List(map[string]any{"organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(vc_changes)
vc_change, err := client.VcChange(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(vc_change)

Lua

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

local vc_changes, err = client:VcChange():list({ organization_id = "example", repo_id = "example" })
local vc_change, err = client:VcChange():load({ id = "example_id", organization_id = "example", repo_id = "example" })

PHP

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

$vc_changes = $client->VcChange()->list(["organization_id" => "example", "repo_id" => "example"]);
$vc_change = $client->VcChange()->load(["id" => "example_id", "organization_id" => "example", "repo_id" => "example"]);

Python

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

vc_changes = client.VcChange().list({"organization_id": "example", "repo_id": "example"})
vc_change = client.VcChange().load({"id": "example_id", "organization_id": "example", "repo_id": "example"})

Ruby

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

vc_changes = client.VcChange.list({ "organization_id" => "example", "repo_id" => "example" })
vc_change = client.VcChange.load({ "id" => "example_id", "organization_id" => "example", "repo_id" => "example" })

TypeScript

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

const vc_changes = await client.VcChange().list({ organization_id: "example", repo_id: "example" })
const vc_change = await client.VcChange().load({ id: "example_id", organization_id: "example", repo_id: "example" })

Fields

Field Type Required Description
activity array Yes Activity
canonical_path string Yes Canonical Path
change any Yes Change
checks array No Checks
checks_status string No Checks Status
description one,string,null No Description
group one,object,null No Group
id string Yes Id
jj_change_id one,string,null No Jj Change Id
labels array No Labels
landing object Yes Server-computed submitted-together closure and landing preflight.
number integer Yes Number
patchset_number one,integer,null No Patchset Number
previews array Yes Previews
primary_status one,string,null No Primary Status
public_id string No Public Id
related_changes array Yes Related Changes
relation_chain array Yes Relation Chain
restack_state string No Restack State
review_summary object No Review Summary
stack any No Stack
status string Yes Status
sync object Yes Sync
target object Yes Target
target_advanced boolean Yes Target Advanced
target_branch string Yes Target Branch
title string Yes Title
url string No Url

create

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/abandon

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_abandon.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Abandoned change and any directly orphaned changes

application/json

Property Type Required Description
change object and object Yes
orphaned_changes array of object Yes
orphaned_changes[].description string No
orphaned_changes[].group object No
orphaned_changes[].group.id string No
orphaned_changes[].group.name string No
orphaned_changes[].group.number integer No
orphaned_changes[].id string Yes
orphaned_changes[].jj_change_id string No
orphaned_changes[].labels array of object No
orphaned_changes[].labels[].changes_count integer Yes
orphaned_changes[].labels[].id string Yes
orphaned_changes[].labels[].name string Yes Display name
orphaned_changes[].labels[].slug string Yes Normalized identity used for filtering and lookup.
orphaned_changes[].number integer Yes
orphaned_changes[].patchset_number integer No
orphaned_changes[].primary_status string No
orphaned_changes[].public_id string No
orphaned_changes[].stack object No
orphaned_changes[].status enum: open, landed, abandoned, folded Yes
orphaned_changes[].target_branch string Yes
orphaned_changes[].title string Yes
orphaned_changes[].url string No
401: Unauthorized
403: Forbidden
404: Not found
422: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/accept

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_accept.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
message string No

Responses

200: Recorded vote. Reread the change page for its updated state

application/json

Property Type Required Description
vote object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/fold

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_fold.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
description string No The absorbing change's new message. Composed from both changes when omitted.
dry_run boolean No
into string No The change this caller believes the parent to be. Refused when it is not, so a stack that moved is not folded somewhere unintended.

Responses

200: The absorbing change with its new patchset, the folded change, and the changes reparented onto the absorber. For dry_run, the plan

application/json

The response is object or object.

401: Unauthorized
403: Forbidden
404: Not found
422: The fold was refused. conflict names the path that blocked it when the refusal was a merge conflict

application/json

Property Type Required Description
conflict object No
conflict.kind string No
conflict.path string No
error string Yes
502: Bad gateway

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/github_projection

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_github_projection.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

202: Current per-change GitHub projection state

application/json

Property Type Required Description
change_id string Yes
change_number integer Yes
github_backed boolean Yes
github_projection object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Change submission was invalid

application/json

Property Type Required Description
error string Yes
503: Change submission was invalid

application/json

Property Type Required Description
error string Yes

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/ready

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_ready.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Change marked ready

application/json

Property Type Required Description
message string Yes
401: Unauthorized
403: Actor cannot mark this Change ready
404: Not found
409: Change is no longer open
422: Unprocessable entity
502: Bad gateway

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/retry_ci

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_retry_ci.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
request_id string Yes

Responses

200: Existing retries for this request

application/json

Property Type Required Description
pipeline_runs array of object Yes
pipeline_runs[].active boolean Yes
pipeline_runs[].canceled_at string (date-time) Yes
pipeline_runs[].ci_pipeline_id string Yes
pipeline_runs[].ci_runner_pool_id string Yes
pipeline_runs[].commit_sha string Yes
pipeline_runs[].concurrency_key string Yes
pipeline_runs[].created_at string (date-time) Yes
pipeline_runs[].creator_user_id string Yes
pipeline_runs[].display_id integer Yes
pipeline_runs[].failed boolean Yes
pipeline_runs[].finished_at string (date-time) Yes
pipeline_runs[].hosted_app_id string Yes
pipeline_runs[].id string Yes
pipeline_runs[].message string Yes
pipeline_runs[].number integer Yes
pipeline_runs[].organization_id string Yes
pipeline_runs[].parameters_json string Yes
pipeline_runs[].queued_at string (date-time) Yes
pipeline_runs[].ref_name string Yes
pipeline_runs[].repository_id string Yes
pipeline_runs[].required_capabilities_csv string Yes
pipeline_runs[].retry_number integer Yes
pipeline_runs[].retryable boolean Yes
pipeline_runs[].slug string Yes
pipeline_runs[].source_url string Yes
pipeline_runs[].started_at string (date-time) Yes
pipeline_runs[].status string Yes
pipeline_runs[].status_label string Yes
pipeline_runs[].status_state enum: active, successful, failed, canceled, blocked, skipped, ... Yes
pipeline_runs[].status_tone enum: success, danger, warning, default Yes
pipeline_runs[].trigger_kind string Yes
pipeline_runs[].updated_at string (date-time) Yes
201: Existing retries for this request

application/json

Property Type Required Description
pipeline_runs array of object Yes
pipeline_runs[].active boolean Yes
pipeline_runs[].canceled_at string (date-time) Yes
pipeline_runs[].ci_pipeline_id string Yes
pipeline_runs[].ci_runner_pool_id string Yes
pipeline_runs[].commit_sha string Yes
pipeline_runs[].concurrency_key string Yes
pipeline_runs[].created_at string (date-time) Yes
pipeline_runs[].creator_user_id string Yes
pipeline_runs[].display_id integer Yes
pipeline_runs[].failed boolean Yes
pipeline_runs[].finished_at string (date-time) Yes
pipeline_runs[].hosted_app_id string Yes
pipeline_runs[].id string Yes
pipeline_runs[].message string Yes
pipeline_runs[].number integer Yes
pipeline_runs[].organization_id string Yes
pipeline_runs[].parameters_json string Yes
pipeline_runs[].queued_at string (date-time) Yes
pipeline_runs[].ref_name string Yes
pipeline_runs[].repository_id string Yes
pipeline_runs[].required_capabilities_csv string Yes
pipeline_runs[].retry_number integer Yes
pipeline_runs[].retryable boolean Yes
pipeline_runs[].slug string Yes
pipeline_runs[].source_url string Yes
pipeline_runs[].started_at string (date-time) Yes
pipeline_runs[].status string Yes
pipeline_runs[].status_label string Yes
pipeline_runs[].status_state enum: active, successful, failed, canceled, blocked, skipped, ... Yes
pipeline_runs[].status_tone enum: success, danger, warning, default Yes
pipeline_runs[].trigger_kind string Yes
pipeline_runs[].updated_at string (date-time) Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{change_id}/transcript_chat

Operation ID: api_v1_change_transcript_chat.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
change_id path string Yes

Request body

application/json

Property Type Required Description
transcript_chat object Yes
transcript_chat.checkpoint_id string Yes
transcript_chat.messages array of object Yes
transcript_chat.messages[].content string Yes
transcript_chat.messages[].role enum: user, assistant Yes

Responses

200: A stateless answer. Accept text/event-stream for start, delta (text), done, and error (message) SSE events

application/json

Property Type Required Description
answer string Yes
checkpoint_id string Yes
patchset_number integer Yes

text/event-stream

The response is string.

401: Unauthorized
403: Forbidden
404: Not found
422: Invalid conversation or unavailable checkpoint context
429: Too many questions
502: Bad gateway
503: Model provider unavailable

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/submit

Operation ID: api_v1_submit.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes

Request body

application/json

Property Type Required Description
assets array of object No
assets[].alias string Yes
assets[].id string Yes
draft boolean No On submit, omitted or null means ready; on sync, omitted or null preserves the current draft status.
git_publication_id string Yes
labels array of string No
message string No Initial durable rich-text description for newly created changes.
remove_reviewers array of string No Organization member names or emails to remove as reviewers.
reviewers array of string No Organization member names or emails to add as reviewers.

Responses

200: Success

application/json

The response is object.

201: Created or updated change outcomes

application/json

Property Type Required Description
changes array of object Yes
changes[].group object No
changes[].group.id string No
changes[].group.name string No
changes[].group.number integer No
changes[].jj_change_id string Yes
changes[].number integer Yes
changes[].outcome enum: created, updated, unchanged Yes
changes[].patchset_number integer No
changes[].public_id string Yes
changes[].url string Yes
expected_ci object No Historical CI duration estimate for the pipelines expected to run for this submission, from recent terminal pipeline-run wall-clock times. Omitted entirely when no workflow matches, no terminal history exists, or the estimate could not be computed.
expected_ci.basis enum: pipeline_runs Yes
expected_ci.p50_seconds integer Yes
expected_ci.p95_seconds integer Yes
expected_ci.pipelines array of object Yes
expected_ci.pipelines[].p50_seconds integer Yes
expected_ci.pipelines[].p95_seconds integer Yes
expected_ci.pipelines[].sample_size integer Yes
expected_ci.pipelines[].slug string Yes
expected_ci.sample_size integer Yes
removed_reviewers array of object Yes
removed_reviewers[].email string (email) Yes
removed_reviewers[].name string Yes
requested_reviewers array of object Yes
requested_reviewers[].email string (email) Yes
requested_reviewers[].name string Yes
validated_target_commit_id string No Target commit validated during submission.
202: Git revision anchors are awaiting durable publication; no review was created
401: Unauthorized
403: Forbidden
404: Reviewer was not found in the organization

application/json

Property Type Required Description
error string Yes
409: The reviewer name is ambiguous, or the target ref changed; use the error to correct the request

application/json

The response is object or object.

422: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/submit_ref

Operation ID: api_v1_submit_ref.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes

Request body

application/json

Property Type Required Description
base string Yes
description string No
expected_base_commit_id string Yes
expected_head_commit_id string Yes
expected_review_head_commit_id string No
expected_review_patchset_number integer No
head string Yes
title string Yes

Responses

200: Success

application/json

The response is object.

201: Created or updated Change

application/json

Property Type Required Description
changes array of object Yes
changes[].group object No
changes[].group.id string No
changes[].group.name string No
changes[].group.number integer No
changes[].jj_change_id string Yes
changes[].number integer Yes
changes[].outcome enum: created, updated, unchanged Yes
changes[].patchset_number integer No
changes[].public_id string Yes
changes[].url string Yes
401: Unauthorized
403: Forbidden
404: Not found
409: Head or base moved since comparison
422: Ref or commit cannot be submitted
502: Bad gateway

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/sync

Operation ID: api_v1_sync.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes

Request body

application/json

Property Type Required Description
assets array of object No
assets[].alias string Yes
assets[].id string Yes
draft boolean No On submit, omitted or null means ready; on sync, omitted or null preserves the current draft status.
git_publication_id string Yes
labels array of string No
message string No Initial durable rich-text description for newly created changes.
remove_reviewers array of string No Organization member names or emails to remove as reviewers.
reviewers array of string No Organization member names or emails to add as reviewers.

Responses

200: Created or updated change outcomes

application/json

Property Type Required Description
changes array of object Yes
changes[].group object No
changes[].group.id string No
changes[].group.name string No
changes[].group.number integer No
changes[].jj_change_id string Yes
changes[].number integer Yes
changes[].outcome enum: created, updated, unchanged Yes
changes[].patchset_number integer No
changes[].public_id string Yes
changes[].url string Yes
expected_ci object No Historical CI duration estimate for the pipelines expected to run for this submission, from recent terminal pipeline-run wall-clock times. Omitted entirely when no workflow matches, no terminal history exists, or the estimate could not be computed.
expected_ci.basis enum: pipeline_runs Yes
expected_ci.p50_seconds integer Yes
expected_ci.p95_seconds integer Yes
expected_ci.pipelines array of object Yes
expected_ci.pipelines[].p50_seconds integer Yes
expected_ci.pipelines[].p95_seconds integer Yes
expected_ci.pipelines[].sample_size integer Yes
expected_ci.pipelines[].slug string Yes
expected_ci.sample_size integer Yes
removed_reviewers array of object Yes
removed_reviewers[].email string (email) Yes
removed_reviewers[].name string Yes
requested_reviewers array of object Yes
requested_reviewers[].email string (email) Yes
requested_reviewers[].name string Yes
validated_target_commit_id string No Target commit validated during submission.
202: Git revision anchors are awaiting durable publication; no review was created
401: Unauthorized
403: Forbidden
404: Reviewer was not found in the organization

application/json

Property Type Required Description
error string Yes
409: The reviewer name is ambiguous, or the target ref changed; use the error to correct the request

application/json

The response is object or object.

422: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway

list

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes

Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
mine query boolean No
target query string No
label query string No Label slug. Repeat the parameter or comma-separate values to require every label.
status query enum: open, landed, abandoned, folded, orphaned, needs_restack No orphaned and needs_restack select open changes by their derived state.
group query enum: stack No Return active stacks and ungrouped changes from this same filtered list. Unpaged: a row is a stack, and cutting the change relation underneath one would render it as smaller than it is. Sending page or limit alongside it is rejected rather than answered with truncated stacks.
page query integer No Which page of changes to return. Rejected with group=stack.
limit query integer No Changes per page, clamped to 100. Rejected with group=stack.

Responses

200: One page of change summaries, plus status counts for the whole filtered scope

application/json

Property Type Required Description
changes array of object and object No
counts object Yes
pagination object No Present for the flat list, where count is every change matching the filters rather than the page's length. Absent under group=stack, which is unpaged.
stacks array of object and object No Present when group=stack.
ungrouped array of object and object No Changes without an active stack, present when group=stack.
visible_count_label string Yes How many changes this response carries. pagination.count_label names the whole scope.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}

Operation ID: api_v1_change.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Responses

200: Change detail, canonical product path, relation chain, target state, sync preview, and landing closure

application/json

Property Type Required Description
activity array of object Yes
activity[].actor object and object No
activity[].detail string No
activity[].id string Yes
activity[].kind enum: submitted, patchset_pushed, synced, accepted, changes_requested, reviews_carried_forward, ... Yes
activity[].occurred_at string (date-time) Yes
activity[].occurred_at_label string Yes
activity[].patchset_number integer No
activity[].queue_entry_id string No
activity[].source object No
activity[].source.branch string No
activity[].source.commit_sha string Yes
activity[].source.commit_url string (uri) Yes
activity[].source.provider enum: github Yes
activity[].source.repository string Yes
activity[].title string Yes
activity[].tone enum: neutral, info, success, warning, destructive Yes
canonical_path string Yes
change object and object and object Yes
landing object Yes Server-computed submitted-together closure and landing preflight. An unavailable closure returns available: false with error and nothing else.
landing.attention object No
landing.available boolean Yes
landing.blocker_summary string No One-line stack footer for why the set cannot land yet. Null when there are no requirements. Derived from requirement codes; React must not re-summarize the requirement list.
landing.can_defer_landing boolean No
landing.can_land boolean No
landing.can_prioritize boolean No
landing.changes array of object Yes
landing.changes[].id string Yes
landing.changes[].landable boolean Yes
landing.changes[].number integer Yes
landing.changes[].orphaned boolean Yes
landing.changes[].primary_status enum: needs_review, review_requested, changes_requested, approved, ready_to_land, waiting_to_land, ... Yes
landing.changes[].status enum: open, landed, abandoned, folded Yes
landing.changes[].title string Yes
landing.checks_summary object No
landing.checks_summary.label string Yes
landing.checks_summary.tone enum: success, warning, destructive, neutral Yes Semantic readiness tone. React maps this to presentation; Rails never sends CSS.
landing.count integer No
landing.error string No
landing.landable boolean No
landing.override_info object No
landing.override_info.available boolean Yes True when this actor may force the set past its overridable requirements.
landing.override_info.required boolean Yes
landing.override_info.requirement_version string No Opaque fence echoed back as expected_requirement_version when overriding.
landing.request object No
landing.request.failure object No The error this entry itself recorded, verbatim.
landing.request.health enum: steady, retrying, stalled Yes Whether the retries so far are routine or the attempt is going nowhere.
landing.request.id string Yes
landing.request.position integer No
landing.request.priority enum: normal, high No
landing.request.queue object No
landing.request.queue.ahead array of object Yes
landing.request.queue.ahead[].error string Yes
landing.request.queue.ahead[].id string Yes
landing.request.queue.ahead[].number integer Yes
landing.request.queue.ahead[].retry_count integer Yes
landing.request.queue.ahead[].state string Yes
landing.request.queue.ahead[].title string Yes
landing.request.queue.ahead_count integer Yes
landing.request.queue.paused boolean Yes
landing.request.queue_error object No What the merge queue tick last recorded. Sent only while this entry is at the front of the queue, and attributed to the queue rather than to this change.
landing.request.retry_count integer Yes How many times the queue restarted this attempt after it stalled.
landing.request.state string Yes
landing.request.version integer Yes Optimistic fence echoed back as expected_version when cancelling.
landing.requirements array of object No
landing.requirements[].app_id integer No
landing.requirements[].change_id string No
landing.requirements[].check_name string No
landing.requirements[].code string Yes
landing.requirements[].conclusion string No
landing.requirements[].evaluated_head string No
landing.requirements[].message string Yes
landing.requirements[].number integer No
landing.requirements[].overridable boolean No True when an acknowledged override can clear this requirement.
landing.requirements[].source enum: vex, github, any No
landing.scope_version string No Opaque fence echoed back as expected_scope_version when requesting a landing.
landing.submitted_together array of object No
landing.submitted_together[].id string Yes
landing.submitted_together[].landable boolean Yes
landing.submitted_together[].number integer Yes
landing.submitted_together[].orphaned boolean Yes
landing.submitted_together[].primary_status enum: needs_review, review_requested, changes_requested, approved, ready_to_land, waiting_to_land, ... Yes
landing.submitted_together[].status enum: open, landed, abandoned, folded Yes
landing.submitted_together[].title string Yes
landing.sync_available boolean No Whether Rails could build a merge preview for every Change in the landing scope.
landing.sync_conflicts array of object No
landing.sync_conflicts[].base object Yes
landing.sync_conflicts[].base.change object No
landing.sync_conflicts[].base.change.id string Yes
landing.sync_conflicts[].base.change.number integer Yes
landing.sync_conflicts[].base.change.title string Yes
landing.sync_conflicts[].base.commit_id string No
landing.sync_conflicts[].base.kind enum: change, target Yes
landing.sync_conflicts[].base.target_branch string No
landing.sync_conflicts[].change object Yes
landing.sync_conflicts[].change.id string Yes
landing.sync_conflicts[].change.landable boolean Yes
landing.sync_conflicts[].change.number integer Yes
landing.sync_conflicts[].change.orphaned boolean Yes
landing.sync_conflicts[].change.primary_status enum: needs_review, review_requested, changes_requested, approved, ready_to_land, waiting_to_land, ... Yes
landing.sync_conflicts[].change.status enum: open, landed, abandoned, folded Yes
landing.sync_conflicts[].change.title string Yes
landing.sync_conflicts[].conflicts array of object Yes
landing.sync_conflicts[].conflicts[].kind string Yes
landing.sync_conflicts[].conflicts[].message string Yes
landing.sync_conflicts[].conflicts[].path string Yes
landing.sync_unavailable_changes array of object No
landing.sync_unavailable_changes[].id string Yes
landing.sync_unavailable_changes[].number integer Yes
landing.sync_unavailable_changes[].title string Yes
landing.target_requires_checks boolean No Whether a bookmark protection rule makes the merge queue require CI on this target. When false, a deferred landing has nothing to wait for and lands immediately.
landing.votes_summary object No
landing.votes_summary.label string Yes
landing.votes_summary.tone enum: success, warning, destructive, neutral Yes Semantic readiness tone. React maps this to presentation; Rails never sends CSS.
landing.waiting_on array of object No Ordered readiness rows for the land action preview.
landing.waiting_on[].check_name string No
landing.waiting_on[].code string No Requirement code for display icons.
landing.waiting_on[].evaluated_head string No Full revision evaluated by the check.
landing.waiting_on[].key string Yes
landing.waiting_on[].label string Yes
landing.waiting_on[].number integer No
landing.waiting_on[].title string No Short server-owned requirement heading.
landing.waiting_on[].tone enum: success, warning, destructive, neutral Yes Semantic readiness tone. React maps this to presentation; Rails never sends CSS.
previews array of object Yes
previews[].access enum: org_members, public Yes
previews[].app_id string Yes
previews[].app_name string Yes
previews[].current_patchset boolean Yes
previews[].deployments array of object Yes
previews[].deployments[].build_status string Yes
previews[].deployments[].id string Yes
previews[].deployments[].patchset_number integer,null Yes
previews[].deployments[].rollout_status string Yes
previews[].deployments[].service_name string Yes
previews[].deployments[].source_revision string,null Yes
previews[].deployments[].status string Yes
previews[].expires_at string (date-time) Yes
previews[].id string Yes
previews[].name string Yes
previews[].retained boolean Yes
previews[].runtime_revisions array of object Yes
previews[].runtime_revisions[].patchset_number integer,null Yes
previews[].runtime_revisions[].source_revision string Yes
previews[].runtime_revisions[].status string Yes
previews[].source_patchset_number integer,null Yes
previews[].source_revision string,null Yes
previews[].status string Yes
previews[].urls array of object Yes
previews[].urls[].available boolean Yes
previews[].urls[].hostname string Yes
related_changes array of object Yes
related_changes[].changes array of object Yes
related_changes[].changes[].id string Yes
related_changes[].changes[].number integer Yes
related_changes[].changes[].orphaned boolean Yes
related_changes[].changes[].primary_status enum: needs_review, review_requested, changes_requested, approved, ready_to_land, waiting_to_land, ... Yes
related_changes[].changes[].repository_slug string Yes
related_changes[].changes[].status enum: open, landed, abandoned, folded Yes
related_changes[].changes[].title string Yes
related_changes[].changes[].url string Yes
related_changes[].count_label string Yes
related_changes[].label object Yes A free-form, organization-scoped grouping name applied to changes.
related_changes[].label.changes_count integer Yes
related_changes[].label.id string Yes
related_changes[].label.name string Yes Display name
related_changes[].label.slug string Yes Normalized identity used for filtering and lookup.
related_changes[].total_count integer Yes Total related changes for this label, which may exceed the returned page.
relation_chain array of object Yes
relation_chain[].current_patchset object No
relation_chain[].current_patchset.commit_id string Yes
relation_chain[].current_patchset.id string Yes
relation_chain[].current_patchset.number integer Yes
relation_chain[].current_patchset.source_kind enum: git No
relation_chain[].id string Yes
relation_chain[].number integer Yes
relation_chain[].orphaned boolean Yes
relation_chain[].parent_change_id string No
relation_chain[].patchset_count integer No
relation_chain[].primary_status enum: needs_review, review_requested, changes_requested, approved, ready_to_land, waiting_to_land, ... Yes
relation_chain[].relation enum: current, ancestor, descendant Yes Position of this member relative to the change being read.
relation_chain[].restack_state enum: clean, restack_required No
relation_chain[].status enum: open, landed, abandoned, folded Yes
relation_chain[].title string Yes
relation_chain[].url string No
review_summary object No
review_summary.diff object,null No
review_summary.diff.additions integer Yes
review_summary.diff.deletions integer Yes
review_summary.diff.file_count integer Yes
review_summary.diff.files array of object Yes
review_summary.diff.files[].additions integer Yes
review_summary.diff.files[].change_type enum: added, modified, deleted, renamed Yes
review_summary.diff.files[].deletions integer Yes
review_summary.diff.files[].path string Yes
review_summary.transcripts object,null No
review_summary.transcripts.session_count integer Yes
review_summary.transcripts.tokens_partial boolean Yes
review_summary.transcripts.total_tokens integer,null Yes
sync object Yes
sync.base object Yes
sync.base.change object No
sync.base.change.id string Yes
sync.base.change.number integer Yes
sync.base.change.title string Yes
sync.base.commit_id string No
sync.base.kind enum: change, target Yes
sync.base.target_branch string No
sync.conflicts array of object Yes
sync.conflicts[].kind string Yes
sync.conflicts[].message string Yes
sync.conflicts[].path string Yes
sync.state enum: current, clean, conflicts, unavailable Yes
sync.target_branch string Yes
sync.target_commit_id string No
target object Yes
target.status enum: available, unavailable Yes
target.target_branch string No
target.target_commit_id string No
target_advanced boolean Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/ci

Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_ci.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Responses

200: Current checks, timing history, and retryable runs

application/json

Property Type Required Description
can_retry_ci boolean Yes
change object Yes
checks array of object Yes
history array of object Yes
retryable_runs array of object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{change_id}/diff

Operation ID: api_v1_change_diff.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
change_id path string Yes
base query string No
head query string No
base_patchset_number query integer No
head_patchset_number query integer No

Responses

200: Selected comparison, picker options, and persisted diff files

application/json

Property Type Required Description
base_commit_id string Yes
base_key string Yes
files array of object Yes
files[].additions integer Yes
files[].binary boolean No
files[].deletions integer Yes
files[].generated boolean No True when this path is a lockfile or well-known generated dump a reviewer usually does not need expanded.
files[].patch string No
files[].path string Yes
files[].previous_path string No
files[].status enum: added, modified, deleted, renamed Yes
files[].truncated boolean No
files[].unresolved_comments_count integer No
files[].unresolved_comments_count_label string No
head_key string Yes
head_patchset object and object or null Yes
options array of object Yes
options[].group enum: Target, Stack changes, Patchset history Yes
options[].key string Yes
options[].label string Yes
target_advanced boolean Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/github_projection

Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_github_projection.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Responses

200: Current per-change GitHub projection state

application/json

Property Type Required Description
change_id string Yes
change_number integer Yes
github_backed boolean Yes
github_projection object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/state

Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_state.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Responses

200: Uncached accepted revision metadata without backend or review-page reads

application/json

Property Type Required Description
change object Yes
change.head_commit_id string,null Yes
change.number integer Yes
change.reference string Yes
change.status enum: open, landed, abandoned, folded Yes
401: Unauthorized
403: Forbidden
404: Change submission was invalid

application/json

Property Type Required Description
error string Yes
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/submit_preview

Operation ID: api_v1_submit_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
head query string Yes
base query string No

Responses

200: Resolved Git revision, target, and observed review lease

application/json

Property Type Required Description
base string Yes
base_commit_id string Yes
change_id string Yes
description string Yes
directly_on_base boolean Yes
head_commit_id string Yes
parent_commit_id string Yes
review_head_commit_id string Yes
review_patchset_number integer Yes
title string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Ref or commit cannot be submitted
502: Bad gateway

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/lookup

Operation ID: api_v1_lookup.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
legacy_stack_ref query string No
change_keys[] query array of string No
target_branch query string No

Responses

200: Ordered known and missing JJ change identities, or the canonical first change for a legacy stack

application/json

The response is object or object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PATCH /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/description

Operation ID: patch_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_description.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
assets array of object No
assets[].alias string Yes
assets[].id string Yes
description string No

Responses

200: Detailed canonical change

application/json

Property Type Required Description
change object and object Yes
401: Unauthorized
403: Change submission was invalid

application/json

Property Type Required Description
error string Yes
404: Not found
422: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway