Skip to main content
PUT
/
v0
/
serverhosts
Update a serverhost
curl --request PUT \
  --url https://controller.platform.simplecloud.app/v0/serverhosts \
  --header 'Content-Type: application/json' \
  --header 'X-Network-ID: <x-network-id>' \
  --header 'X-Network-Secret: <x-network-secret>' \
  --data '{}'
{
  "created_at": "2023-01-01T12:00:00Z",
  "deactivated": false,
  "deactivated_at": "2023-01-01T12:00:00Z",
  "host_name": "ServerHost-1",
  "last_keep_alive": "2023-01-01T12:00:00Z",
  "maximum_memory": 8192,
  "message": "Serverhost updated successfully",
  "network_id": "123e4567-e89b-12d3-a456-426614174000",
  "serverhost_id": "123e4567-e89b-12d3-a456-426614174000",
  "started_at": "2023-01-01T12:00:00Z",
  "updated_at": "2023-01-01T12:00:00Z"
}

Headers

X-Network-ID
string
required

Network ID

X-Network-Secret
string
required

Network Secret

Query Parameters

serverhost_id
string
required

Serverhost ID

Body

application/json

Serverhost details

The body is of type object.

Response

OK

Response for updating a serverhost

created_at
string
Example:

"2023-01-01T12:00:00Z"

deactivated
boolean
Example:

false

deactivated_at
string
Example:

"2023-01-01T12:00:00Z"

host_name
string
Example:

"ServerHost-1"

last_keep_alive
string
Example:

"2023-01-01T12:00:00Z"

maximum_memory
integer
Example:

8192

message
string
Example:

"Serverhost updated successfully"

network_id
string
Example:

"123e4567-e89b-12d3-a456-426614174000"

serverhost_id
string
Example:

"123e4567-e89b-12d3-a456-426614174000"

started_at
string
Example:

"2023-01-01T12:00:00Z"

updated_at
string
Example:

"2023-01-01T12:00:00Z"