POSTBearer token
Rename a server
/api/v1/servers/:id/name
Update the display name of an organization server.
Request example
cURL
curl "https://tovahub.com/api/v1/servers/507f1f77bcf86cd799439012/name" -X POST \
-H "Authorization: Bearer $TOVAHUB_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"name": "my-server"
}'Examples only. No requests are sent from this page.
Illustrative response
JSON
{
"ok": true,
"name": "Production web"
}Parameters
idPath · Requiredstring
24-character platform ID, optionally prefixed by order- for an order placeholder.
nameJSON body · Requiredstring
Trimmed display name, 1–80 characters; control characters are rejected.
Response
HTTP status 200
Save a platform display name without changing the supplier hostname.
okboolean (true)The display name was saved.
namestringThe saved name.