API

ChangeGroupMember

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/{id}/members create Created explicit change group
DELETE /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/change_groups/{id}/members/{change_id} remove 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:

created, err := client.ChangeGroupMember(nil).Create(map[string]any{"change_group_id": "example", "organization_id": "example", "repo_id": "example", "change_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
removed, err := client.ChangeGroupMember(nil).Remove(map[string]any{"change_group_id": "example", "id": "example_id", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

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

local created, err = client:ChangeGroupMember():create({ change_group_id = "example", organization_id = "example", repo_id = "example", change_id = "example" })
local removed, err = client:ChangeGroupMember():remove({ change_group_id = "example", id = "example_id", organization_id = "example", repo_id = "example" })

PHP

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

$created = $client->ChangeGroupMember()->create(["change_group_id" => "example", "organization_id" => "example", "repo_id" => "example", "change_id" => "example"]);
$client->ChangeGroupMember()->remove(["change_group_id" => "example", "id" => "example_id", "organization_id" => "example", "repo_id" => "example"]);

Python

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

created = client.ChangeGroupMember().create({ "change_group_id": "example", "organization_id": "example", "repo_id": "example", "change_id": "example" })
client.ChangeGroupMember().remove({"change_group_id": "example", "id": "example_id", "organization_id": "example", "repo_id": "example"})

Ruby

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

created = client.ChangeGroupMember.create({ "change_group_id" => "example", "organization_id" => "example", "repo_id" => "example", "change_id" => "example" })
client.ChangeGroupMember.remove({ "change_group_id" => "example", "id" => "example_id", "organization_id" => "example", "repo_id" => "example" })

TypeScript

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

const created = await client.ChangeGroupMember().create({ change_group_id: "example", organization_id: "example", repo_id: "example", change_id: "example" })
await client.ChangeGroupMember().remove({ change_group_id: "example", id: "example_id", organization_id: "example", repo_id: "example" })

Fields

Field Type Required Description
change_id string Yes Change number
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/{id}/members

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_change_groups_id_members.

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
change_id string Yes Change number

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: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway

remove

DELETE /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/change_groups/{id}/members/{change_id}

Operation ID: delete_api_v1_organizations_org_slug_repos_repo_slug_vcs_change_groups_id_members_change_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
change_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: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway