API

VcChangeGroup

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/change_groups create Success
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/change_groups list Repository-scoped change groups
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/change_groups/{id} load Created explicit change group

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_change_groups, err := client.VcChangeGroup(nil).List(map[string]any{"organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(vc_change_groups)
vc_change_group, err := client.VcChangeGroup(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(vc_change_group)
created, err := client.VcChangeGroup(nil).Create(map[string]any{"organization_id": "example", "repo_id": "example", "name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local vc_change_groups, err = client:VcChangeGroup():list({ organization_id = "example", repo_id = "example" })
local vc_change_group, err = client:VcChangeGroup():load({ id = "example_id", organization_id = "example", repo_id = "example" })
local created, err = client:VcChangeGroup():create({ organization_id = "example", repo_id = "example", name = "example" })

PHP

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

$vc_change_groups = $client->VcChangeGroup()->list(["organization_id" => "example", "repo_id" => "example"]);
$vc_change_group = $client->VcChangeGroup()->load(["id" => "example_id", "organization_id" => "example", "repo_id" => "example"]);
$created = $client->VcChangeGroup()->create(["organization_id" => "example", "repo_id" => "example", "name" => "example"]);

Python

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

vc_change_groups = client.VcChangeGroup().list({"organization_id": "example", "repo_id": "example"})
vc_change_group = client.VcChangeGroup().load({"id": "example_id", "organization_id": "example", "repo_id": "example"})
created = client.VcChangeGroup().create({ "organization_id": "example", "repo_id": "example", "name": "example" })

Ruby

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

vc_change_groups = client.VcChangeGroup.list({ "organization_id" => "example", "repo_id" => "example" })
vc_change_group = client.VcChangeGroup.load({ "id" => "example_id", "organization_id" => "example", "repo_id" => "example" })
created = client.VcChangeGroup.create({ "organization_id" => "example", "repo_id" => "example", "name" => "example" })

TypeScript

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

const vc_change_groups = await client.VcChangeGroup().list({ organization_id: "example", repo_id: "example" })
const vc_change_group = await client.VcChangeGroup().load({ id: "example_id", organization_id: "example", repo_id: "example" })
const created = await client.VcChangeGroup().create({ organization_id: "example", repo_id: "example", name: "example" })

Fields

Field Type Required Description
changes array Yes Changes
id string No Id
name string No Name
number integer No Number
status string Yes Status
title one,string,null Yes Title

create

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/change_groups

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_change_groups.

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
name string Yes
title string No

Responses

200: Success

application/json

The response is object.

201: Created explicit change group

application/json

Property Type Required Description
group 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

list

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

Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_vcs_change_groups.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: Repository-scoped change groups

application/json

Property Type Required Description
groups array of object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

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

Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_vcs_change_groups_id_.

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: Created explicit change group

application/json

Property Type Required Description
group object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway