Skip to main content
Version: 5.7.0

DetachAdvancedIdentity

Detach the identity from this profile.

ServiceOperation
identityDETACH

Method Parameters

ParameterDescription
authenticationTypeUniversal, Universal, Facebook, etc
externalIdUser ID
extraJsonAdditional to piggyback along with the call, to be picked up by pre- or post- hooks. Leave empty string for no extraJson
continueAnonProceed even if the profile will revert to anonymous

Usage

http://localhost:3000
AuthenticationType authenticationType = AuthenticationType.Universal;
string externalId = "externalId";
bool continueAnon = true;
string extraJson = "{\"key\":\"value\"}";

_bc.IdentityService.DetachAdvancedIdentity(
authenticationType,
externalId,
continueAnon,
extraJson,
SuccessCallback, FailureCallback);
JSON Response
{
"status": 200,
"data": null
}
Common Error Code

Status Codes

CodeNameDescription
40210DOWNGRADING_TO_ANONYMOUS_ERROROccurs when detaching the last non-anonymous identity from an account with continueAnon set to false.
40206MISSING_IDENTITY_ERRORA "profileId" was supplied in the authentication request submitted with new credentials. In other words the credentials record was not found in the brainCloud database. The solution would be to provide known credentials or not supply a "profileId" if the user is actually new.
40209SECURITY_ERRORReturned if a security exception was encountered.