API

ChangeLabel

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
PATCH /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/labels 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:

updated, err := client.ChangeLabel(nil).Update(map[string]any{"change_id": "example", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

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

local updated, err = client:ChangeLabel():update({ change_id = "example", organization_id = "example", repo_id = "example" })

PHP

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

$updated = $client->ChangeLabel()->update(["change_id" => "example", "organization_id" => "example", "repo_id" => "example"]);

Python

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

updated = client.ChangeLabel().update({"change_id": "example", "organization_id": "example", "repo_id": "example"})

Ruby

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

updated = client.ChangeLabel.update({ "change_id" => "example", "organization_id" => "example", "repo_id" => "example" })

TypeScript

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

const updated = await client.ChangeLabel().update({ change_id: "example", organization_id: "example", repo_id: "example" })

Fields

Field Type Required Description
accepted boolean No Accepted
add array No Add
approval object No Approval
assets array No Proof assets referenced from the description as vex-asset:<id>.
author any No Human user summary or organization automation identity.
capabilities object No Capabilities
change_key string No Change Key
checks array No Checks
checks_status string No Checks Status
comments array No Comments
comments_count integer No Comments Count
comments_count_label string No Comments Count Label
commit_message one,string,null No Commit Message
current_patchset object No Current Patchset
description one,string,null No Description
draft boolean No Draft
folded_into_number one,integer,null No Folded Into Number
github_projection_status one,string,null No Github Projection Status
github_pull_request object No Github Pull Request
github_pull_requests array No Github Pull Requests
group one,object,null No Group
has_description boolean No True when the change has Vex-owned review description content, distinct from the JJ commit message.
id string Yes Id
jj_change_id one,string,null No Jj Change Id
labels array No Labels
landable boolean No Landable
landed_by object No Landed By
number integer Yes Number
orphaned boolean No Orphaned
orphaned_at string No Orphaned At
orphaned_at_label string No Orphaned At Label
orphaned_reason string No Orphaned Reason
parent_change_id one,string,null No Parent Change Id
parent_change_number one,integer,null No Parent Change Number
patchset_number one,integer,null No Patchset Number
patchsets array No Patchsets
primary_status one,string,null No Primary Status
public_id string No Public Id
relation_chain array No Relation Chain
remove array No Remove
requested_changes boolean No Requested Changes
restack_state string No Restack State
reviewer_candidates array No Organization members available to the reviewer picker on this page.
reviewers array No Reviewers
stable_change_id string No Stable Change Id
stack any No Stack
status string Yes Status
target_branch string Yes Target Branch
title string Yes Title
unresolved_comments_count_label string No Unresolved Comments Count Label
url string No Url
votes array No Votes

update

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

Operation ID: patch_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_labels.

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
add array of string No
labels array of string No
remove array of string No

Responses

200: Detailed canonical change

application/json

Property Type Required Description
change object and 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