---
search:
  tags:
    - dcs-clusters
    - POST
seo:
  description: >-
    Replaces the etcd member of a DCS… Reference for the POST
    /api/v1/dcs-clusters/{id}/servers/{server_id}/rebuild endpoint in the
    TimescaleDB Enterprise API.
sidebar:
  label: Rebuild a DCS member
  badge: POST
title: Rebuild a DCS member
type: openapi-operation
---
Replaces the etcd member of a DCS server that a new server took over, and updates the etcd hosts on every service that uses the DCS cluster. The server must be pending a rebuild: run its enroll command on the replacement server first. The other members and every service on the cluster must be healthy.

`POST /api/v1/dcs-clusters/{id}/servers/{server_id}/rebuild`

**Responses**

- `202` — Accepted
- `default` — Error

Response example, 202:

```json
{
  "id": "string",
  "name": "string",
  "servers": [
    {
      "CleanupError": "string",
      "CleanupKind": "string",
      "CleanupPending": true,
      "CleanupSince": "2019-08-24T14:15:22Z",
      "CreatedAt": "2019-08-24T14:15:22Z",
      "Demo": true,
      "EnrollState": "string",
      "HeadscaleNodeID": "string",
      "Host": "string",
      "ID": "string",
      "Name": "string",
      "OverlayIP": "string",
      "Port": 0,
      "PreviousOverlayIP": "string",
      "RebuildPending": true,
      "SSHUser": "string"
    }
  ],
  "status": "string",
  "used_by_count": 0
}
```
