Skip to Content
Xeonr Developer Docs

Set server status

POST
/xmb.api.v1.PlatformService/SetServerStatus

Disables or re-enables a server. A disabled server refuses its members and its hubs leave the gateway routing table, so streaming from it stops. Platform operators only.

Required scopes: xmb:super: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

Slug of the server.

Length1 <= length <= 128
status?not unknown

What to set it to.

Value in"SERVER_STATUS_UNSPECIFIED" | "SERVER_STATUS_ACTIVE" | "SERVER_STATUS_DISABLED"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.PlatformService/SetServerStatus" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "server": "map[hubCount:2 primaryAdmin:luke server:map[createdAt:2025-03-08T10:15:00Z id:12 memberCount:4 name:Thompson Home slug:thompson-home status:SERVER_STATUS_DISABLED viewerRole:SERVER_ROLE_UNSPECIFIED] unhealthyHubCount:0]"
}