Skip to content
TimescaleDB Enterprise
Esc
↑↓navigate↵open⌘Jpreview

Add a relay to a relay zone

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
Authorization
tse_sessionAPI key · cookierequired
Path parameters
idstringrequired
Request body
requiredapplication/json
server_idstringrequired

An enrolled free server that reaches the console directly.

Responses
202

Accepted

workflow_idstringrequired
default

Error

codestring

Stable code of the refusal, when the route has codes

detailsstring[]

Additional detail, e.g. per-field validation failures

errorstringrequired

Human-readable error message

Request
curl -X POST 'https://console.example.com/api/v1/relay-zones/string/relays' \
  -H 'Cookie: tse_session=YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "string"
}'
Response
{
  "workflow_id": "string"
}