Set hostname
set_hostnameSet the VPS hostname (valid DNS name). Applied immediately inside the running server via the guest agent (Linux: hostnamectl + the 127.0.1.1 line in /etc/hosts; Windows: renamed, takes effect after a reboot — the response then has reboot_required: true). The server must be running with its guest agent active; otherwise the call fails with 409 agent_unavailable and nothing is changed. Your password, SSH host keys and files are not touched. Requires: token, server running. Typical error: 409 agent_unavailable → start the server / wait for boot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | ||
| service_id | No | Service code as returned by list_vps/order_vps, e.g. "68J67T5" (a plain numeric id is also accepted). |