ChangeLandingRequest
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}/landing_requests |
create |
Landing request created for the complete submitted-together closure |
DELETE |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/landing_requests/{entry_id} |
remove |
Landing request cancelled |
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.ChangeLandingRequest(nil).Create(map[string]any{"change_id": "example", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
removed, err := client.ChangeLandingRequest(nil).Remove(map[string]any{"change_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:ChangeLandingRequest():create({ change_id = "example", organization_id = "example", repo_id = "example" })
local removed, err = client:ChangeLandingRequest():remove({ change_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->ChangeLandingRequest()->create(["change_id" => "example", "organization_id" => "example", "repo_id" => "example"]);
$client->ChangeLandingRequest()->remove(["change_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.ChangeLandingRequest().create({ "change_id": "example", "organization_id": "example", "repo_id": "example" })
client.ChangeLandingRequest().remove({"change_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.ChangeLandingRequest.create({ "change_id" => "example", "organization_id" => "example", "repo_id" => "example" })
client.ChangeLandingRequest.remove({ "change_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.ChangeLandingRequest().create({ change_id: "example", organization_id: "example", repo_id: "example" })
await client.ChangeLandingRequest().remove({ change_id: "example", id: "example_id", organization_id: "example", repo_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
change_ids |
array |
No | Change Ids |
count |
integer |
Yes | Count |
defer_until_ready |
boolean |
No | Admit the request while approvals or checks are pending |
expected_requirement_version |
string |
No | Expected Requirement Version |
expected_scope_version |
string |
No | Expected Scope Version |
head_change_id |
string |
No | Head Change Id |
id |
one,string,null |
No | Id |
numbers |
array |
Yes | Numbers |
override_acknowledged |
boolean |
No | Override Acknowledged |
override_codes |
array |
No | Override Codes |
position |
integer |
No | Position |
priority |
string |
No | Priority |
scope_version |
string |
Yes | Scope Version |
state |
string |
Yes | State |
version |
integer |
No | Version |
create
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/landing_requests
Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_landing_requests.
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 |
|---|---|---|---|
defer_until_ready |
boolean |
No | Admit the request while approvals or checks are pending |
expected_requirement_version |
string |
No | |
expected_scope_version |
string |
No | |
override_acknowledged |
boolean |
No | |
override_codes |
array of string |
No | |
priority |
enum: normal, high |
No |
Responses
200: Landing request created for the complete submitted-together closure
application/json
| Property | Type | Required | Description |
|---|---|---|---|
request |
object |
Yes | |
request.change_ids |
array of string |
No | |
request.count |
integer |
Yes | |
request.head_change_id |
string |
No | |
request.id |
string |
No | |
request.numbers |
array of integer |
Yes | |
request.position |
integer |
No | |
request.priority |
enum: normal, high |
No | |
request.scope_version |
string |
Yes | |
request.state |
string |
Yes | |
request.version |
integer |
No |
201: Landing request created for the complete submitted-together closure
application/json
| Property | Type | Required | Description |
|---|---|---|---|
request |
object |
Yes | |
request.change_ids |
array of string |
No | |
request.count |
integer |
Yes | |
request.head_change_id |
string |
No | |
request.id |
string |
No | |
request.numbers |
array of integer |
Yes | |
request.position |
integer |
No | |
request.priority |
enum: normal, high |
No | |
request.scope_version |
string |
Yes | |
request.state |
string |
Yes | |
request.version |
integer |
No |
401: Unauthorized
403: Change submission was invalid
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
404: Not found
409: Change submission was invalid
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: Change submission was invalid
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
502: Bad gateway
503: Change submission was invalid
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
remove
DELETE /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/landing_requests/{entry_id}
Operation ID: delete_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_landing_requests_entry_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 | |
entry_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
expected_version |
integer |
Yes |
Responses
200: Landing request cancelled
application/json
The response is object.
401: Unauthorized
403: Change submission was invalid
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
404: Not found
409: Change submission was invalid
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: Change submission was invalid
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |