Cloud Panel

Rename and tag

PATCH/api/v1/vms/{vm_uuid}

Changes the name or the tags. Tags replace all the tags the server had.

Parameters

NameInDescription
vm_uuidpath, stringrequiredServer id, from Create a VM or List VMs

Request body

FieldTypeDescription
display_namestring, optionalNew name of the server
tagsmap of string, optionalYour tags; replace all the tags it had, up to 10

Example request

curl -X PATCH "https://platform.serverscamp.com/api/v1/vms/$VM_UUID" \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "display_name": "web-prod-1"
  }'

Answer

Status 200 with this body.

FieldTypeDescription
vm_uuidstringrequiredServer id
display_namestring, optionalName given at create
vm_namestringrequiredSystem name, also the DNS name of the server
statusstringrequiredpending while it is created, then active; deleting, reinstalling and resizing while those run; failed or error when something went wrong
statestring, optionalPower state: running, stopped and the like
errorstring, optionalWhat went wrong, when status is failed or error
pending_opmap of object, optionalA power action still running, for example {"type": "vm_power", "action": "shutdown"}; null when none is
vm_class_idintegerrequiredPlan id
vm_class_namestring, optionalPlan name
cpu_coresintegerrequiredvCPU cores
memory_mbintegerrequiredMemory, MB
storage_class_idintegerrequiredDisk id of the root disk
storage_class_namestring, optionalDisk name of the root disk
disk_gbintegerrequiredRoot disk size, GB
vm_template_idinteger, optionalImage the server was created with
os_typestring, optionalSystem of the image
ssh_key_idinteger, optionalSSH key of the scamp user
network_uuidstringrequiredPrivate network of the server
networkVmNetworkInforequired
network.network_uuidstring, optionalPrivate network of the server
network.ip_internalstring, optionalPrivate IPv4 address in that network
network.ipv6_addressstring, optionalIPv6 address
network.public_ip_v4string, optionalPublic IPv4 address of the server, if it has one
network.public_ip_v6string, optionalPublic IPv6 address of the server, if it has one
network.floating_ip_v4string, optionalFloating IPv4 attached to the server
network.floating_ip_v6string, optionalFloating IPv6 attached to the server
os_userstringrequiredUser to log in as: scamp, with sudo
os_passwordstringrequiredPassword of that user
tagsmap of stringrequiredYour tags
created_atstringrequiredWhen it was created, ISO 8601
{
  "vm_uuid": "6f1c2a9e-4b3d-4e8a-9c71-2d5e8f0a1b34",
  "display_name": "web-prod-1",
  "vm_name": "web-1-k3x9",
  "status": "active",
  "state": "running",
  "error": null,
  "pending_op": null,
  "vm_class_id": 49,
  "vm_class_name": "basic-4g",
  "cpu_cores": 2,
  "memory_mb": 4096,
  "storage_class_id": 18,
  "storage_class_name": "standard",
  "disk_gb": 50,
  "vm_template_id": 5,
  "os_type": "Ubuntu",
  "ssh_key_id": 42,
  "network_uuid": "a3e1f0c2-7d4b-4c6e-8f9a-0b1c2d3e4f50",
  "network": {
    "network_uuid": "a3e1f0c2-7d4b-4c6e-8f9a-0b1c2d3e4f50",
    "ip_internal": "10.0.0.12",
    "ipv6_address": "2a01:ea05:10:4::12",
    "public_ip_v4": "185.236.10.44",
    "public_ip_v6": "2a01:ea05:20:1::44",
    "floating_ip_v4": null,
    "floating_ip_v6": null
  },
  "os_user": "scamp",
  "os_password": "Rk7vQ2mXp9LwT4sN",
  "tags": {
    "env": "production"
  },
  "created_at": "2026-11-01T09:20:14+00:00"
}

Errors

StatusWhen
401No token, or a token that is not valid
404No such server in your account
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors