Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.ServerService

Set server settings

POST
/xmb.api.v1.ServerService/SetServerSettings

Replaces the server's second-opinion settings: whether the model is asked on this server, which model, and how much of the parser's confident output it shadows.

Required scopes: xmb:admin

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

serverSlug?string
Length1 <= length <= 128
secondOpinion?

A server's second-opinion settings.

downloadsEnabled?|

Absent leaves it as it was, so a page that only edits the model does not have to know about downloads.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.ServerService/SetServerSettings" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "settings": "map[downloadsEnabled:false secondOpinion:map[mode:SECOND_OPINION_MODE_ON model: shadowPercent:25] secondOpinionAvailable:true secondOpinionDefaultEnabled:true secondOpinionDefaultModel:deepseek-ai/DeepSeek-V4-Flash-0731 secondOpinionDefaultShadowPercent:10]"
}