Skip to main content
PATCH
/
servers
/
{server}
Update server metadata
curl --request PATCH \
  --url https://console.wenium.com/api/servers/{server} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hostname": "updated-hostname",
  "firewall_group_id": 5
}
'
{
  "status": true,
  "message": "Server updated.",
  "data": {
    "id": 10,
    "name": "web-server-01",
    "vcpu": 2,
    "ram": 2048,
    "disk": 40,
    "bw_used": 12.34,
    "main_ipv4": "192.168.1.100",
    "main_ipv6": "2001:db8::1",
    "template": "Ubuntu 22.04",
    "firewall_group_id": 5,
    "created_at": "2026-07-03T00:00:00.000000Z",
    "renewed_at": "2026-07-03T00:00:00.000000Z",
    "due_date": "2026-08-03T00:00:00.000000Z",
    "recurring_amount": 15,
    "amount_paid": 15,
    "payment_currency": "USD",
    "billing_cycle": "monthly",
    "status": "running"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

server
integer
required

Body

application/json
hostname
string
Example:

"updated-hostname"

firewall_group_id
integer | null
Example:

5

Response

200 - application/json

Server updated

status
boolean
Example:

true

message
string
Example:

"Server updated."

data
object