---
title: "Update clusters in federation"
method: POST
path: "/_api/members"
tags: ["Data Centers"]
---

# Update clusters in federation

`POST /_api/members`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/members/post.ts> (a function with typed inputs; its response is checked against the schema)

Update the clusters in federation.

## Request body

- FederationMemberPeerip
  - `peer` string: Hostname of the peer cluster that needs to be added to the federation.

## Response `202`

Successfully updated clusters in federation.

- DatacenterMembersPostRc200
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `result` boolean

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed because you do not have administrator permissions.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
