Path parameters

  • id integer Required

    VPS ID number

Body Required

  • hostname string

Body Required

  • hostname string

Responses

  • 200 application/json

    Response message from sending a service queue.

    Hide response attributes Show response attributes object
    • text string Required

      Response text

    • queueId integer(int32) Required

      The Queue ID attached to the action.

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
POST /vps/{id}/change_hostname
curl \
 --request POST 'https://my.interserver.net/apiv2/vps/{id}/change_hostname' \
 --header "X-API-KEY: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"hostname":"new.host.com"}'
curl \
 --request POST 'https://my.interserver.net/apiv2/vps/{id}/change_hostname' \
 --header "X-API-KEY: $API_KEY" \
 --header "Content-Type: multipart/form-data" \
 --form "hostname=new.host.com"
Request examples
{
  "hostname": "new.host.com"
}
Response examples (200)
{
  "text": "Action has been sent to the server. Please allow up to 2 minutes for action to be completed.",
  "queueId": 14670065
}
Response examples (401)
{
  "code": "string",
  "message": "string"
}