POST
/
v2
/
servers
/
{instance_id}
/
restart
Restart or Update a Game Server
curl --request POST \
  --url https://api.computeflow.cloud/v2/servers/{instance_id}/restart \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "startup_args": "<string>",
  "version_tag": "<string>",
  "version": 123,
  "ttl": 43230,
  "auto_restart": true,
  "custom_data": {}
}'
{
  "instance_id": "<string>",
  "name": "<string>",
  "network_ports": [
    {
      "name": "<string>",
      "internal_port": 123,
      "external_port": 123,
      "protocol": "udp",
      "host": "<string>",
      "tls_enabled": false
    }
  ],
  "status": "launching",
  "startup_args": "<string>",
  "service_type": "match_based",
  "compute_size": "",
  "region": "",
  "version_tag": "",
  "version": 123,
  "started_at": "2023-11-07T05:31:56Z",
  "stopped_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "auto_restart": true,
  "custom_data": {},
  "ttl": 123
}

Headers

api-key
string
required

PlayFlow API Key

Path Parameters

instance_id
string
required

Unique identifier (UUID) of the server instance to restart.

Examples:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

Body

application/json

Optional update configuration. If not provided, performs simple restart. Request schema for restarting/updating a server. All fields are optional.

Response

Successful Response

The response is of type object.