Change
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/{org_slug}/changes |
load |
One page of the organization change queue, flat or grouped |
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:
change, err := client.Change(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(change)
Lua
Construct client as shown in the Lua setup, then call the operations:
local change, err = client:Change():load({ organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$change = $client->Change()->load(["organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
change = client.Change().load({"organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
change = client.Change.load({ "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const change = await client.Change().load({ organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
counts |
object |
Yes | Counts for each state across the active non-state filters. |
filters |
object |
Yes | Filters |
github_sync |
object |
No | Github Sync |
result |
any |
Yes | What this page is a page of. |
load
GET /api/v1/organizations/{org_slug}/changes
Operation ID: api_v1_changes.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
source |
query |
enum: all, vex, github |
No | |
q |
query |
string |
No | |
state |
query |
enum: open, needs_review, changes_requested, approved, ready_to_land, landed, ... |
No | |
repo |
query |
string |
No | |
author |
query |
string |
No | Public ID of the user who created the change. |
mine |
query |
boolean |
No | |
tips_only |
query |
boolean |
No | Show only active stack tips and standalone changes. |
awaiting_review |
query |
boolean |
No | Only open changes that explicitly request a current patchset review from the signed-in user. Excludes changes authored by that user. |
target |
query |
string |
No | |
stack |
query |
string |
No | Durable stack code or the stack's optional human alias. |
sort |
query |
enum: submitted, updated, number |
No | |
direction |
query |
enum: asc, desc |
No | |
view |
query |
enum: list, stack, author, created_time |
No | Return paginated groups instead of the flat change list. stack groups by active stack, author by the user who created each change, and created_time by rolling period. |
number |
query |
integer |
No | |
label |
query |
string |
No | Label slug. Repeat the parameter or comma-separate values to require every label. |
page |
query |
integer |
No | Outer page. Selects changes in the list view and group keys in a grouped view. Ignored by created_time, whose four periods are all returned. |
group_pages |
query |
string |
No | Inner page positions, as a comma-separated list of key:page pairs such as usr_a:3,usr_b:2. Keys are the group keys this endpoint returned. Unknown, duplicate, malformed, and currently invisible keys are ignored, and a page past the end of a group resolves to that group's last page. |
Responses
200: One page of the organization change queue, flat or grouped
application/json
| Property | Type | Required | Description |
|---|---|---|---|
counts |
object |
Yes | Counts for each state across the active non-state filters. |
counts.abandoned |
integer |
Yes | |
counts.all |
integer |
Yes | |
counts.approved |
integer |
Yes | |
counts.changes_requested |
integer |
Yes | |
counts.folded |
integer |
Yes | |
counts.landed |
integer |
Yes | |
counts.needs_restack |
integer |
Yes | |
counts.needs_review |
integer |
Yes | |
counts.open |
integer |
Yes | |
counts.orphaned |
integer |
Yes | |
counts.ready_to_land |
integer |
Yes | |
filters |
object |
Yes | |
filters.authors |
array of object and object |
Yes | |
filters.labels |
array of object |
Yes | |
filters.labels[].changes_count |
integer |
Yes | |
filters.labels[].name |
string |
Yes | |
filters.labels[].slug |
string |
Yes | |
filters.repos |
array of object |
Yes | |
filters.repos[].name |
string |
Yes | |
filters.repos[].slug |
string |
Yes | |
github_sync |
object |
No | |
github_sync.complete |
boolean |
Yes | |
github_sync.error |
string |
Yes | |
github_sync.team_reviews_complete |
boolean |
Yes | |
github_sync.updated_at |
string |
Yes | |
result |
object or object |
Yes | What this page is a page of. kind states what the top-level pagination describes: changes in the list view, group keys in a grouped view. |