---
search:
  tags:
    - relay-zones
    - POST
seo:
  description: >-
    Makes a server a relay of the zone and deploys it. Adding… Reference for the
    POST /api/v1/relay-zones/{id}/relays endpoint in the TimescaleDB Enterprise
    API.
sidebar:
  label: Add a relay to a relay zone
  badge: POST
title: Add a relay to a relay zone
type: openapi-operation
---
Makes a server a relay of the zone and deploys it. Adding a relay does not change the existing relays, and their connections stay. The zone must be running or failed, and the new relay must reach the console by its host name (409).

`POST /api/v1/relay-zones/{id}/relays`

**Request body** (`application/json`, required)

- `server_id` (string, required) — An enrolled free server that reaches the console directly.

Request body example:

```json
{
  "server_id": "string"
}
```

**Responses**

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

Response example, 202:

```json
{
  "workflow_id": "string"
}
```
