Skip to Content
Xeonr Developer Docs

Update member role

POST
/xmb.api.v1.MembershipService/UpdateMemberRole

Changes what a member may do on a server. Fails with FAILED_PRECONDITION if it would leave the server without an administrator.

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

Slug of the server.

Length1 <= length <= 128
userId?string

Account identifier of the member.

Length1 <= length
role?not unknown

Role to give them.

Value in"SERVER_ROLE_UNSPECIFIED" | "SERVER_ROLE_MEMBER" | "SERVER_ROLE_ADMIN"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.MembershipService/UpdateMemberRole" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "member": "map[email:[email protected] id:17 joinedAt:2025-06-01T19:02:00Z role:SERVER_ROLE_ADMIN username:sam]"
}