---
title: "Update a Replication Policy"
method: PUT
path: "/cluster/replication/policies/{id}"
tags: ["Cluster Replication"]
---

# Update a Replication Policy

`PUT /cluster/replication/policies/{id}`

Update one replication policy while preserving its ownership and transition state

## Path parameters

- `id` integer, required

## Request body

- GithubComAlchemillahqSylveInternalInterfacesServicesClusterReplicationPolicyReq
  - `crashRecovery` boolean
  - `crashRestartMax` integer
  - `cronExpr` string
  - `description` string
  - `enabled` boolean
  - `failbackMode` string
  - `failoverMode` string
  - `guestId` integer, required
  - `guestType` string, required
  - `name` string, required
  - `poolCapacityPct` integer
  - `poolHealthCheck` boolean
  - `sourceMode` string
  - `sourceNodeId` string
  - `targets` GithubComAlchemillahqSylveInternalInterfacesServicesClusterReplicationPolicyTargetReq[], required
    - `nodeId` string, required
    - `weight` integer

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseAny
  - `data` unknown
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Policy, Guest, or Cluster Node Not Found
- `409` — Conflict
- `413` — Request Entity Too Large
- `500` — Internal Server Error
- `502` — Leader Forwarding Failure
- `503` — Service Unavailable
- `504` — Leader Forwarding Timeout

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
