API

Setting

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}/pages/settings load Organization settings page (organization summary plus import branch policy)

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:

setting, err := client.Setting(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(setting)

Lua

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

local setting, err = client:Setting():load({ organization_id = "example" })

PHP

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

$setting = $client->Setting()->load(["organization_id" => "example"]);

Python

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

setting = client.Setting().load({"organization_id": "example"})

Ruby

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

setting = client.Setting.load({ "organization_id" => "example" })

TypeScript

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

const setting = await client.Setting().load({ organization_id: "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/{org_slug}/pages/settings

Operation ID: get_api_v1_organizations_org_slug_pages_settings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug 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