---
title: "Fail Over a Replication Policy"
method: POST
path: "/cluster/replication/policies/{id}/failover"
tags: ["Cluster Replication"]
---

# Fail Over a Replication Policy

`POST /cluster/replication/policies/{id}/failover`

Queue a safe or forced failover for a replication policy

## Path parameters

- `id` integer, required

## Request body

- InternalHandlersClusterReplicationFailoverRequest
  - `confirmDataLoss` boolean
  - `mode` string
  - `movePinnedSource` boolean
  - `targetNodeId` string

## Response `202`

Accepted

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

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Replication Policy 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)
