API Specificationxmb.api.v1.HubService
Rotate hub token
Replaces the hub's token. The previous token stops authenticating immediately.
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
uuid?string
Public identifier of the hub.
Format
uuidserverSlug?string
Slug of the server the hub belongs to.
Length
1 <= length <= 128[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.HubService/RotateHubToken" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"hubToken": "xmbh_5f0c2a9e8b1d4c3a9e2f7a6b1c4d8e01_EXAMPLE-not-a-real-secret-0000000000000000"
}