Skip to main content
PATCH
Change a game's settings

Authorizations

Authorization
string
header
required

An API key (pch_...) or the token from pch login.

Path Parameters

owner
string
required
Example:

"mira"

slug
string
required
Example:

"lantern-run"

Body

application/json
connects_to
string[]
Maximum array length: 16
Pattern: ^(?:(?:https|wss):\/\/(?:\*\.)?(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z][a-z0-9-]{0,62}|(?:http|ws):\/\/(?:(?:[a-z0-9-]+\.)*localhost|127\.0\.0\.1))(?::\d{1,5})?$
webrtc
object | null
players
object | null

Response

Its settings now

connects_to
string[]
required

Hosts its next release may fetch from or open WebSockets to

webrtc
object | null
required

Its own ICE servers for WebRTC in its next release, besides Patch's relay for direct links; null: none of its own

players
object | null
required
updated_at
string | null
required