Skip to main content
PATCH
/
websocket-servers
/
{websocketServer}
Update WebSocket cluster
curl --request PATCH \
  --url https://cloud.laravel.com/api/websocket-servers/{websocketServer} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "max_connections": 100
}
'
{
  "data": {
    "id": "<string>",
    "type": "websocketServers",
    "attributes": {
      "name": "<string>",
      "type": "reverb",
      "region": "us-east-2",
      "status": "creating",
      "max_connections": 100,
      "connection_distribution_strategy": "evenly",
      "hostname": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    },
    "relationships": {
      "applications": {
        "data": [
          {
            "type": "websocketApplications",
            "id": "<string>"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "<string>",
      "type": "websocketApplications",
      "attributes": {
        "name": "<string>",
        "app_id": "<string>",
        "allowed_origins": [
          "<unknown>"
        ],
        "ping_interval": 123,
        "activity_timeout": 123,
        "max_message_size": 123,
        "max_connections": 123,
        "key": "<string>",
        "secret": "<string>",
        "created_at": "2023-11-07T05:31:56Z"
      },
      "relationships": {
        "server": {
          "data": {
            "type": "websocketServers",
            "id": "<string>"
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

The Bearer Token generated on the Cloud UI.

Path Parameters

websocketServer
string
required

The websocket server identifier

Body

application/json
name
string
Required string length: 3 - 40
max_connections
enum<integer>

The number of maximum connections allowed for the WebSocket server. If passed, the connection distribution strategy will be set to EVENLY.

Available options:
100,
200,
500,
2000,
5000,
10000

Response

WebsocketServerResource

data
WebsocketServerResource · object
required
included
WebsocketApplicationResource · object[]