---
title: "Update BYOC Infrastructure"
method: PATCH
path: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}"
tags: ["Organization"]
---

# Update BYOC Infrastructure

`PATCH /v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}`
- Auth: HTTP basic

Update configuration of the BYOC infrastructure: rename it, toggle private link and load balancers, or replace its tags. The request is validated as a whole before anything is applied. If applying a field then fails in the data plane, client errors name the fields already applied, while internal errors return a generic message; retrying the same request is safe either way and converges the infrastructure to the requested state. Returns the modified infrastructure

## Path parameters

- `organizationId` string, uuid, required
- `byocInfrastructureId` string, uuid, required

## Request body

- ByocInfrastructurePatchRequest
  - `displayName` string: Human readable name for infrastructure object
  - `enablePrivateLink` boolean: Enable or disable private link connectivity on the infrastructure. Disabling is rejected while any service in the organization has active private endpoints
  - `gcpPscSubnetId` string: GCP BYO-VPC only: customer-provided Private Service Connect NAT subnet name required to enable private link. Only accepted together with `enablePrivateLink: true`
  - `enablePrivateLoadBalancer` boolean: Enable or disable the private (internal) load balancer of the infrastructure
  - `enablePublicLoadBalancer` boolean: Enable or disable the public (internet-facing) load balancer of the infrastructure
  - `tags` ByocInfrastructureTags

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` ByocConfig
    - `id` string: Unique identifier of the BYOC configuration
    - `state` string: State of the infrastructure. Current values: 'infra-provisioning', 'infra-terminated', 'infra-terminating', 'infra-ready', 'infra-degraded', 'infra-upgrading', 'infra-awaiting-connector'. New states may be added; treat an unknown state as not ready
    - `accountId` string: Cloud account ID the BYOC infrastructure is bound to: AWS account ID, GCP project ID, or Azure subscription ID
    - `accountName` string: DEPRECATED. Use `accountId` instead. Cloud account ID the BYOC infrastructure is bound to
    - `regionId` 'ap-northeast-1' | 'ap-northeast-2' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'il-central-1' | 'us-east-1' | 'us-east-2' | 'us-west-2' | 'us-east1' | 'us-central1' | 'europe-west2' | 'europe-west4' | 'asia-southeast1' | 'asia-northeast1' | 'eastus' | 'eastus2' | 'westus3' | 'germanywestcentral' | 'centralus': Region for which the BYOC has been configured and where it is possible to create services
    - `cloudProvider` 'gcp' | 'aws' | 'azure': Cloud provider of the region
    - `displayName` string: Human readable name for infrastructure
    - `accessModel` string: How ClickHouse reaches the infrastructure: `standard` through a management role in your account, or `restricted` through a connector you install in a cluster you own

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-11-20** `6c2218858de8`: 7 info
  - added the optional property `result/accessModel` to the response with the `200` status
  - removed the `infra-degraded` enum value from the `result/state` response property for the response status `200`
  - removed the `infra-provisioning` enum value from the `result/state` response property for the response status `200`
  - removed the `infra-ready` enum value from the `result/state` response property for the response status `200`
  - …3 more

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/byocInfrastructure/:byocInfrastructureId/patch.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
