---
title: "Update CDC ClickPipes scaling"
method: PATCH
path: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesCdcScaling"
tags: ["ClickPipes"]
---

# Update CDC ClickPipes scaling

`PATCH /v1/organizations/{organizationId}/services/{serviceId}/clickpipesCdcScaling`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/services/{serviceId}/clickpipesCdcScaling`
- Auth: HTTP basic

Update scaling settings for database ClickPipes (PostgreSQL, MySQL, MongoDB, BigQuery).

The infrastructure is shared between all database ClickPipes in the service, both for initial load and CDC. Scaling settings may take a few minutes to fully propagate.

For billing purposes, 2 CPU cores and 8 GB of RAM [correspond](https://clickhouse.com/docs/cloud/manage/billing/overview#clickpipes-for-postgres-cdc) to one compute unit. If your organization tier changes, database ClickPipes will be [rescaled](https://clickhouse.com/docs/cloud/manage/billing/overview#compute) appropriately.

**Note:** For Kafka, Kinesis, and object storage pipes (S3, GCS, Azure Blob), see [Get ClickPipe](#tag/ClickPipes/operation/clickPipeGet).

**This endpoint becomes available once at least one database ClickPipe was provisioned.**

## Path parameters

- `organizationId` string, uuid, required
- `serviceId` string, uuid, required

## Request body

- ClickPipesCdcScalingPatchRequest
  - `replicaCpuMillicores` integer: CPU in millicores for DB ClickPipes.
  - `replicaMemoryGb` number: Memory in GiB for DB ClickPipes. Must be 4× the CPU core count.

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` ClickPipesCdcScaling
    - `replicaCpuMillicores` integer: CPU in millicores for DB ClickPipes.
    - `replicaMemoryGb` number: Memory in GiB for DB ClickPipes. Must be 4× the CPU core count.

## 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.

---

[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)
