---
title: "Enable Replication Channels"
method: POST
path: "/internal/databases/{database_id}/enable-replication"
tags: ["internal"]
---

# Enable Replication Channels

`POST /internal/databases/{database_id}/enable-replication`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/internal/databases/{database_id}/enable-replication`
- Auth: none declared. Required headers: `x-service-token`

Phase 2 of MySQL replica setup: add replication channels to a RUNNING replica.

The PXC operator panics if replicationChannels are configured before
status.pxc.version is populated.  So replicas deploy without channels
first (phase 1), then this endpoint regenerates the CRD with channels
after the cluster is healthy.

## Path parameters

- `database_id` string, uuid, required

## Headers

- `x-service-token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
