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

Leave server

POST
/xmb.api.v1.ServerService/LeaveServer

Removes the authenticated caller from a server. Fails with FAILED_PRECONDITION if the caller is its only administrator — promote someone else or delete the server.

Required scopes: xmb:user:write

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 to leave.

Length1 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.ServerService/LeaveServer" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{}