Tunploy
APIReferenceServers

Change a server

PATCH/servers/{id}

Only the fields sent change. The address and node are fixed. A new listen_port or mtu recreates the container, which drops connections for a moment; the rest apply to configs issued from now on.

Needs the servers:write scope.

Authorization

apiKey
AuthorizationBearer <token>

An API key: tp_….

In: header

Path Parameters

id*integer

Server ID.

Range1 <= value

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/servers/1" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": 0,  "name": "string",  "node": {    "id": 0,    "name": "string"  },  "country": "DE",  "city": "string",  "status": "running",  "endpoint": "string",  "listen_port": 0,  "public_key": "string",  "address": "10.8.0.1/24",  "subnet": "10.8.0.0/24",  "dns": [    "string"  ],  "dns_on_server": true,  "mtu": 0,  "persistent_keepalive": 0,  "client_allowed_ips": [    "string"  ],  "device_count": 0,  "capacity": 0,  "created_at": "2019-08-24T14:15:22Z"}