Skip to main content
Version: 5.7.0

SwitchToSingletonChildProfile

Switches to a child profile of an app when only one profile exists. If multiple profiles exist this returns an error.

ServiceOperation
identitySWITCH_TO_CHILD_PROFILE

Method Parameters

ParameterDescription
childAppIdThe App ID of the child app to switch to
forceCreateShould a new profile be created if it does not exist?

Usage

http://localhost:3000
string childAppId = "1234567";

_bc.IdentityService.SwitchToSingletonChildProfile(
childAppId,
true,
ApiSuccess, ApiError);
JSON Response
{
"data": {
"abTestingId": 93,
"lastLogin": 1558725462395,
"server_time": 1558725462431,
"refundCount": 0,
"timeZoneOffset": -5,
"experiencePoints": 0,
"createdAt": 1558462162948,
"parentProfileId": "08ae9b33-3e9d-43d5-835e-7915e0da0fca",
"emailAddress": null,
"experienceLevel": 0,
"countryCode": "CA",
"vcClaimed": 0,
"currency": {},
"id": "e3bf5491-aed5-402c-8eb3-e218e77a58ff",
"amountSpent": 0,
"parentCurrency": {
"Parent": {}
},
"previousLogin": 1558462162950,
"playerName": "",
"pictureUrl": null,
"incoming_events": [],
"languageCode": "en",
"vcPurchased": 0,
"isTester": false,
"loginCount": 2,
"xpCapped": false,
"profileId": "e3bf5491-aed5-402c-8eb3-e218e77a58ff",
"newUser": false,
"sent_events": [],
"rewards": {
"rewardDetails": {},
"currency": {},
"rewards": {}
},
"switchToAppId": "12336",
"statistics": {}
},
"status": 200
}