---
title: "Attempts to transfer leadership to a different member of the cluster"
method: POST
path: "/cluster/transfer-leadership"
tags: ["Cluster"]
---

# Attempts to transfer leadership to a different member of the cluster

`POST /cluster/transfer-leadership`

Attempts to transfer leadership to a different member of the cluster. Requires admin access.

## Request body

- ClusterTransferLeadership
  - `newLeaderId` string

## Response `200`

Base empty response

- Empty
  - `meta` Meta, required
    - `filterableFields` string[]
    - `pagination` Pagination
      - `limit` number, required
      - `offset` number, required
      - `totalCount` number, required
    - `apiEnrollmentVersion` string
    - `apiVersion` string
  - `data` object, required

## Other responses

- `401` — The currently supplied session does not have the correct access rights to request this resource
- `404` — The requested resource does not exist
- `429` — The resource requested is rate limited and the rate limit has been exceeded
- `500` — The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
- `503` — The request could not be completed due to the server being busy or in a temporarily bad state

---

[API](https://skmtc.net/openziti/apis/ziti-fabric.md) · [All operations](https://skmtc.net/openziti/apis/ziti-fabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openziti/ziti-fabric/revisions/b899875c8f57/schema)
