Remote Config Client API
Download OpenAPI specification:
Get Player Settings
Code samples for "{title}":
Request example
curl -X GET \ -H "Authorization: Bearer <YOUR_TOKEN>" \ "https://config.unity3d.com//api/v1/settings"
Response example
{ "configs": { "settings": { "backgroundColor": "blue", "bossHealth": 223 } }, "metadata": { "environmentId": "9ea5c0b7-6452-4b1b-aae3-521117ac5da3", "assignmentId": "1c1e8bd4-c044-424f-89c6-d5bc654129e3", "configAssignmentHash": "7da21d376edba70e13c7b9f80ce232b372b5d0b1" }}
Request Player Settings with optional attributes for use in campaign (game overrides).
Request body for "{title}"
Media Type:
application/jsonexample: {"unity":{"appVersion":"1.0","appBuildVersion":"23","country":"US","cpu":"Intel(R) Core(TM) i7-7920 HQ CPU @ 3.10GHz","cpuFrequency":"3100","graphicsDeviceVendor":"Apple","language":"en","osVersion":"Mac OS X 10.14.4","platform":"macOS","ram":8192,"model":"Macbook Pro 13","timeSinceStart":60000},"app":{},"user":{}}Used to specify attributes of the requesting app and user for use in rules.
example: {"appVersion":"1.0","appBuildVersion":"23","country":"US","cpu":"Intel(R) Core(TM) i7-7920 HQ CPU @ 3.10GHz","cpuFrequency":"3100","graphicsDeviceVendor":"Apple","language":"en","osVersion":"Mac OS X 10.14.4","platform":"macOS","ram":8192,"model":"Macbook Pro 13","timeSinceStart":60000}Attributes retrieved by Unity.
Code samples for "{title}":
Request example
curl -X POST \ -H "Content-Type: application/json" \ -d '{ "projectId": "4bab2f9d-07a9-46f4-86a9-9b4fbdc29ac2", "userId": "0cb3fbaa-e66f-4919-9bb2-cbc2aa5a13af", "customUserId": "myUserID", "environmentId": "9ea5c0b7-6452-4b1b-aae3-521117ac5da3", "configType": "settings", "key": [ "key1", "key2" ], "type": [ "json", "int", "bool" ], "isDebugBuild": true, "packageVersion": "2.1.1", "attributionMetadata": "{}", "attributes": { "unity": { "appVersion": "1.0", "appBuildVersion": "23", "country": "US", "cpu": "Intel(R) Core(TM) i7-7920 HQ CPU @ 3.10GHz", "cpuFrequency": "3100", "graphicsDeviceVendor": "Apple", "language": "en", "osVersion": "Mac OS X 10.14.4", "platform": "macOS", "ram": 8192, "model": "Macbook Pro 13", "timeSinceStart": 60000 }, "app": {}, "user": {} }}' \ "https://config.unity3d.com//api/v1/settings"
Response example
{ "configs": { "settings": { "backgroundColor": "blue", "bossHealth": 223 } }, "metadata": { "environmentId": "9ea5c0b7-6452-4b1b-aae3-521117ac5da3", "assignmentId": "1c1e8bd4-c044-424f-89c6-d5bc654129e3", "configAssignmentHash": "7da21d376edba70e13c7b9f80ce232b372b5d0b1" }}