Skip to main content
PATCH
/
servers
/
{uuid}
Update
curl --request PATCH \
  --url https://app.coolify.io/api/v1/servers/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "ip": "<string>",
  "port": 123,
  "user": "<string>",
  "private_key_uuid": "<string>",
  "is_build_server": true,
  "instant_validate": true
}'
[
  {
    "id": 123,
    "uuid": "<string>",
    "name": "<string>",
    "description": "<string>",
    "ip": "<string>",
    "user": "<string>",
    "port": 123,
    "proxy": {},
    "high_disk_usage_notification_sent": true,
    "unreachable_notification_sent": true,
    "unreachable_count": 123,
    "validation_logs": "<string>",
    "log_drain_notification_sent": true,
    "swarm_cluster": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Body

application/json

Server updated.

name
string

The name of the server.

description
string

The description of the server.

ip
string

The IP of the server.

port
integer

The port of the server.

user
string

The user of the server.

private_key_uuid
string

The UUID of the private key.

is_build_server
boolean

Is build server.

instant_validate
boolean

Instant validate.

Response

Server updated.

id
integer
uuid
string
name
string
description
string
ip
string
user
string
port
integer
proxy
object
high_disk_usage_notification_sent
boolean
unreachable_notification_sent
boolean
unreachable_count
integer
validation_logs
string
log_drain_notification_sent
boolean
swarm_cluster
string
I