A game's settings
curl --request GET \
--url https://patch.gg/api/v1/games/{owner}/{slug}/settingsconst options = {method: 'GET'};
fetch('https://patch.gg/api/v1/games/{owner}/{slug}/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/games/{owner}/{slug}/settings"
response = requests.get(url)
print(response.text){
"connects_to": [
"<string>"
],
"webrtc": {
"ice_servers": [
"<string>"
]
},
"players": {
"min": 123,
"max": 123
},
"updated_at": "<string>"
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Games
A game's settings
How the game works with Patch, kept with the game rather than any release: the hosts its next release may connect to, its own ICE servers for WebRTC, and how many play together.
GET
/
games
/
{owner}
/
{slug}
/
settings
A game's settings
curl --request GET \
--url https://patch.gg/api/v1/games/{owner}/{slug}/settingsconst options = {method: 'GET'};
fetch('https://patch.gg/api/v1/games/{owner}/{slug}/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/games/{owner}/{slug}/settings"
response = requests.get(url)
print(response.text){
"connects_to": [
"<string>"
],
"webrtc": {
"ice_servers": [
"<string>"
]
},
"players": {
"min": 123,
"max": 123
},
"updated_at": "<string>"
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Response
Its settings