Skip to main content
Version: 5.7.0

UpdateAttributes

Update user attributes.

ServiceOperation
playerStateUPDATE_ATTRIBUTES

Method Parameters

ParameterDescription
jsonAttributesSingle layer JSON string that is a set of key-value pairs
wipeExistingWhether to wipe existing attributes prior to update.

Usage

http://localhost:3000
string attributes = "{\"key1\":\"value1\",\"key2\":\"value2\"}";
bool wipeExisting = false;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PlayerStateService.UpdateAttributes(attributes, wipeExisting, successCallback, failureCallback);
JSON Response
{
"status" : 200,
"data" : null
}