API

ImportBranchPolicy

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/{organization_id}/import_branch_policy load Organization settings page (organization summary plus import branch policy)
PATCH /api/v1/organizations/{organization_id}/import_branch_policy patch Updated organization import branch policy
PUT /api/v1/organizations/{organization_id}/import_branch_policy update Success

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:

import_branch_policy, err := client.ImportBranchPolicy(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(import_branch_policy)
updated, err := client.ImportBranchPolicy(nil).Update(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.ImportBranchPolicy(nil).Patch(map[string]any{"organization_id": "example", "default_trunk_bookmark": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)

Lua

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

local import_branch_policy, err = client:ImportBranchPolicy():load({ organization_id = "example" })
local updated, err = client:ImportBranchPolicy():update({ organization_id = "example" })
local patched, err = client:ImportBranchPolicy():patch({ organization_id = "example", default_trunk_bookmark = "example" })

PHP

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

$import_branch_policy = $client->ImportBranchPolicy()->load(["organization_id" => "example"]);
$updated = $client->ImportBranchPolicy()->update(["organization_id" => "example"]);
$patched = $client->ImportBranchPolicy()->patch(["organization_id" => "example", "default_trunk_bookmark" => "example"]);

Python

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

import_branch_policy = client.ImportBranchPolicy().load({"organization_id": "example"})
updated = client.ImportBranchPolicy().update({"organization_id": "example"})
patched = client.ImportBranchPolicy().patch({"organization_id": "example", "default_trunk_bookmark": "example"})

Ruby

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

import_branch_policy = client.ImportBranchPolicy.load({ "organization_id" => "example" })
updated = client.ImportBranchPolicy.update({ "organization_id" => "example" })
patched = client.ImportBranchPolicy.patch({ "organization_id" => "example", "default_trunk_bookmark" => "example" })

TypeScript

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

const import_branch_policy = await client.ImportBranchPolicy().load({ organization_id: "example" })
const updated = await client.ImportBranchPolicy().update({ organization_id: "example" })
const patched = await client.ImportBranchPolicy().patch({ organization_id: "example", default_trunk_bookmark: "example" })

Fields

Field Type Required Description
can_manage_pr_scenario_writing boolean Yes Can Manage Pr Scenario Writing
can_manage_sandbox_region boolean Yes Can Manage Sandbox Region
dedicated_outbound_ip_addresses array Yes Public outbound IPs for the enabled operator-managed assignment; empty when no assignment is enabled.
default_trunk_bookmark string Yes Default Trunk Bookmark
organization object Yes Organization
sandbox_regions array Yes Sandbox Regions

load

GET /api/v1/organizations/{organization_id}/import_branch_policy

Operation ID: api_v1_organization_import_branch_policy.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: Organization settings page (organization summary plus import branch policy)

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/organizations/{organization_id}/import_branch_policy

Operation ID: patch_api_v1_organizations_organization_id_import_branch_policy.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

Property Type Required Description
default_trunk_bookmark string Yes

Responses

200: Updated organization import branch policy

application/json

Property Type Required Description
default_trunk_bookmark string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/organizations/{organization_id}/import_branch_policy

Operation ID: put_api_v1_organizations_organization_id_import_branch_policy.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway