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

Trigger hub self-update

POST
/xmb.api.v1.HubService/TriggerHubUpdate

Asks the running hub to check its release channel now and swap itself for the published binary. Synchronous up to the swap: failures come back in the response, and an UPDATING outcome is followed by the hub restarting into the new version.

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.

Formatuuid
serverSlug?string

Slug of the server the hub belongs to.

Length1 <= length <= 128
checkOnly?boolean

Report what is available without downloading or swapping anything.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.HubService/TriggerHubUpdate" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "runningVersion": "214",
  "availableVersion": "215",
  "outcome": "UPDATE_OUTCOME_AVAILABLE",
  "detail": "check_only set; release 215 not downloaded"
}