PUT
/
v2
/
servers
/
{instance_id}
/
update
curl --request PUT \
  --url https://api.computeflow.cloud/v2/servers/{instance_id}/update \
  --header 'X-Server-Status: <x-server-status>' \
  --header 'api-key: <api-key>'
{
  "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": "",
  "started_at": "2023-11-07T05:31:56Z",
  "stopped_at": "2023-11-07T05:31:56Z",
  "custom_data": {},
  "ttl": 123
}

Headers

X-Server-Status
string
required

The status the server is reporting (e.g., 'running').

api-key
string
required

PlayFlow API Key

Path Parameters

instance_id
string
required

Unique identifier (UUID) of the server instance reporting its status.

Response

200
application/json

Successful Response

The response is of type object.