Update client settings
curl --request PUT \
--url https://controller.platform.simplecloud.app/v0/players/sessions/settings \
--header 'Content-Type: application/json' \
--header 'X-Network-ID: <x-network-id>' \
--header 'X-Network-Secret: <x-network-secret>' \
--data '
{
"chat_colors": true,
"chat_mode": "ENABLED",
"client_listing_allowed": true,
"locale": "en_US",
"main_hand": "RIGHT",
"skin_parts": [
"CAPE",
"JACKET"
],
"view_distance": 12
}
'import requests
url = "https://controller.platform.simplecloud.app/v0/players/sessions/settings"
payload = {
"chat_colors": True,
"chat_mode": "ENABLED",
"client_listing_allowed": True,
"locale": "en_US",
"main_hand": "RIGHT",
"skin_parts": ["CAPE", "JACKET"],
"view_distance": 12
}
headers = {
"X-Network-ID": "<x-network-id>",
"X-Network-Secret": "<x-network-secret>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-Network-ID': '<x-network-id>',
'X-Network-Secret': '<x-network-secret>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
chat_colors: true,
chat_mode: 'ENABLED',
client_listing_allowed: true,
locale: 'en_US',
main_hand: 'RIGHT',
skin_parts: ['CAPE', 'JACKET'],
view_distance: 12
})
};
fetch('https://controller.platform.simplecloud.app/v0/players/sessions/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://controller.platform.simplecloud.app/v0/players/sessions/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'chat_colors' => true,
'chat_mode' => 'ENABLED',
'client_listing_allowed' => true,
'locale' => 'en_US',
'main_hand' => 'RIGHT',
'skin_parts' => [
'CAPE',
'JACKET'
],
'view_distance' => 12
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Network-ID: <x-network-id>",
"X-Network-Secret: <x-network-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://controller.platform.simplecloud.app/v0/players/sessions/settings"
payload := strings.NewReader("{\n \"chat_colors\": true,\n \"chat_mode\": \"ENABLED\",\n \"client_listing_allowed\": true,\n \"locale\": \"en_US\",\n \"main_hand\": \"RIGHT\",\n \"skin_parts\": [\n \"CAPE\",\n \"JACKET\"\n ],\n \"view_distance\": 12\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Network-ID", "<x-network-id>")
req.Header.Add("X-Network-Secret", "<x-network-secret>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://controller.platform.simplecloud.app/v0/players/sessions/settings")
.header("X-Network-ID", "<x-network-id>")
.header("X-Network-Secret", "<x-network-secret>")
.header("Content-Type", "application/json")
.body("{\n \"chat_colors\": true,\n \"chat_mode\": \"ENABLED\",\n \"client_listing_allowed\": true,\n \"locale\": \"en_US\",\n \"main_hand\": \"RIGHT\",\n \"skin_parts\": [\n \"CAPE\",\n \"JACKET\"\n ],\n \"view_distance\": 12\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://controller.platform.simplecloud.app/v0/players/sessions/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Network-ID"] = '<x-network-id>'
request["X-Network-Secret"] = '<x-network-secret>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chat_colors\": true,\n \"chat_mode\": \"ENABLED\",\n \"client_listing_allowed\": true,\n \"locale\": \"en_US\",\n \"main_hand\": \"RIGHT\",\n \"skin_parts\": [\n \"CAPE\",\n \"JACKET\"\n ],\n \"view_distance\": 12\n}"
response = http.request(request)
puts response.read_body{
"message": "Settings updated successfully",
"settings": {
"chat_colors": true,
"chat_mode": "ENABLED",
"client_listing_allowed": true,
"locale": "en_US",
"main_hand": "RIGHT",
"skin_parts": [
"CAPE",
"JACKET",
"LEFT_SLEEVE"
],
"view_distance": 12
},
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}players
Update client settings
Update client settings for an online player’s current session
PUT
/
v0
/
players
/
sessions
/
settings
Update client settings
curl --request PUT \
--url https://controller.platform.simplecloud.app/v0/players/sessions/settings \
--header 'Content-Type: application/json' \
--header 'X-Network-ID: <x-network-id>' \
--header 'X-Network-Secret: <x-network-secret>' \
--data '
{
"chat_colors": true,
"chat_mode": "ENABLED",
"client_listing_allowed": true,
"locale": "en_US",
"main_hand": "RIGHT",
"skin_parts": [
"CAPE",
"JACKET"
],
"view_distance": 12
}
'import requests
url = "https://controller.platform.simplecloud.app/v0/players/sessions/settings"
payload = {
"chat_colors": True,
"chat_mode": "ENABLED",
"client_listing_allowed": True,
"locale": "en_US",
"main_hand": "RIGHT",
"skin_parts": ["CAPE", "JACKET"],
"view_distance": 12
}
headers = {
"X-Network-ID": "<x-network-id>",
"X-Network-Secret": "<x-network-secret>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-Network-ID': '<x-network-id>',
'X-Network-Secret': '<x-network-secret>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
chat_colors: true,
chat_mode: 'ENABLED',
client_listing_allowed: true,
locale: 'en_US',
main_hand: 'RIGHT',
skin_parts: ['CAPE', 'JACKET'],
view_distance: 12
})
};
fetch('https://controller.platform.simplecloud.app/v0/players/sessions/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://controller.platform.simplecloud.app/v0/players/sessions/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'chat_colors' => true,
'chat_mode' => 'ENABLED',
'client_listing_allowed' => true,
'locale' => 'en_US',
'main_hand' => 'RIGHT',
'skin_parts' => [
'CAPE',
'JACKET'
],
'view_distance' => 12
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Network-ID: <x-network-id>",
"X-Network-Secret: <x-network-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://controller.platform.simplecloud.app/v0/players/sessions/settings"
payload := strings.NewReader("{\n \"chat_colors\": true,\n \"chat_mode\": \"ENABLED\",\n \"client_listing_allowed\": true,\n \"locale\": \"en_US\",\n \"main_hand\": \"RIGHT\",\n \"skin_parts\": [\n \"CAPE\",\n \"JACKET\"\n ],\n \"view_distance\": 12\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Network-ID", "<x-network-id>")
req.Header.Add("X-Network-Secret", "<x-network-secret>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://controller.platform.simplecloud.app/v0/players/sessions/settings")
.header("X-Network-ID", "<x-network-id>")
.header("X-Network-Secret", "<x-network-secret>")
.header("Content-Type", "application/json")
.body("{\n \"chat_colors\": true,\n \"chat_mode\": \"ENABLED\",\n \"client_listing_allowed\": true,\n \"locale\": \"en_US\",\n \"main_hand\": \"RIGHT\",\n \"skin_parts\": [\n \"CAPE\",\n \"JACKET\"\n ],\n \"view_distance\": 12\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://controller.platform.simplecloud.app/v0/players/sessions/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Network-ID"] = '<x-network-id>'
request["X-Network-Secret"] = '<x-network-secret>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chat_colors\": true,\n \"chat_mode\": \"ENABLED\",\n \"client_listing_allowed\": true,\n \"locale\": \"en_US\",\n \"main_hand\": \"RIGHT\",\n \"skin_parts\": [\n \"CAPE\",\n \"JACKET\"\n ],\n \"view_distance\": 12\n}"
response = http.request(request)
puts response.read_body{
"message": "Settings updated successfully",
"settings": {
"chat_colors": true,
"chat_mode": "ENABLED",
"client_listing_allowed": true,
"locale": "en_US",
"main_hand": "RIGHT",
"skin_parts": [
"CAPE",
"JACKET",
"LEFT_SLEEVE"
],
"view_distance": 12
},
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Query Parameters
Player UUID (Minecraft UUID)
Body
application/json
Settings to update
Was this page helpful?
⌘I