Skip to main content
Version: 5.7.0

Merge

Merges an identity from another profile to this player's profile. The left over profile is decided by the higher XP.

NOTE: If using the BrainCloudWrapper, once the merge is complete, from the brainCloud client, you should call SetStoredProfileId in the BrainCloudWrapper with the profileId returned in the cloud code script.

ServiceOperation
identityMERGE

Method Parameters

ParameterDescription
externalIdUser ID
authenticationTokenPassword or client side token
authenticationTypeType of authentication. Full list of types can be found here.
externalAuthNameThe name of the external authentication mechanism (optional)

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{  
"data":{
"profileId":"f94f7e2d-3cdd-4fd6-9c28-392f7875e9df"
},
"status":200
}
Common Error Code

Status Codes

CodeNameDescription
40211DUPLICATE_IDENTITY_TYPEReturned when trying to attach an identity type that already exists for that profile. For instance you can have only one Facebook identity for a profile.