Info
- Values the app reads from the hub by key, with overrides that change them for some players, servers or builds, under
/api/v2/config
- Needs the Remote config service on for the app, otherwise 403
service_disabled
- Base URL, headers, errors and ETags work as on the API page
- Remote Config Managers set values, overrides and tester pins on the app's Remote config page. Remote Config Viewers see them and check what a player would get
Terms
- Value - a key with a type and a default, e.g.
scenario.difficulty
- Override - the value for one target: everyone, a release channel, a group, a server or a study condition, optionally only when its rules fit
- Rule - conditions on the build and the caller, e.g. platform, version range or a share of players
- Pin - a tester gets one override for a while, whatever its target and rules
Getting the config
GET /api/v2/config?channel=… - every value for the caller, by key
- Needs a player's or a server's Bearer token, otherwise 401
channel - the build's release channel, else X-App-Channel, else the default channel. An unknown channel, or one the caller may not load (its access rules, as for releases), gives the default channel's values
- Answers
values (key → the value as JSON of its type) and sources (key → where it came from)
- Sends an ETag.
If-None-Match answers 304 while the caller's values and sources stay the same
- Sources
default - no override fits
everyone, channel:<name>, group:<name>, server:<name>
condition:<study>/<condition> - the player's condition in a study
pin - a tester pin chose the override
- An app without values answers empty
values and sources
- When a value, override or pin changes, running apps get a
config.changed command on their events connection (GET /api/v2/events, see Presence & Streams API). Load /config again then
What the build sends
- Rules match what the call carries, so send these on every call
X-App-Platform - the platform key, e.g. android-vr
X-App-Version - the app version, e.g. 1.8.0
X-App-Channel - the release channel, e.g. beta, when the call sends no channel
X-App-Device - the device model, e.g. Quest 3
X-App-Os - the OS with its version, e.g. Horizon OS 74
Accept-Language - the first language counts, as its code: cs from cs-CZ,cs;q=0.9
- The country comes from the network address of the call, through the DB-IP country database. Local network addresses have none
- Header values are cut at 64 characters
Overrides