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>"
}
]
Update Server.
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>"
}
]
Go to Keys & Tokens
/ API tokens
and create a new token. Use the token as the bearer token.
Server updated.
The body is of type object
.
Server updated.
The response is of type object[]
.