cURL
curl --request PUT \ --url https://rdp.sh/api/v1/servers/{server}/hostname \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "hostname": "<string>" } '
{ "status": true, "message": "<string>", "hostname": "<string>" }
Update the display hostname for a server. Set to null or less than 3 characters to clear.
New hostname (max 16 characters, min 3 to set, less clears it)
16
Hostname updated successfully.