Skip to main content
Version: 5.7.0

UpdateEntityIndexedId

Updates an existing entity's IndexedId on the server.

ServiceOperation
globalEntityUPDATE_INDEXED_ID

Method Parameters

ParameterDescription
entityIdThe id of the entity to update
versionThe version of the entity to update. Use -1 to indicate the newest version
entityIndexedIdInxdexedId of the entity to update.

Usage

http://localhost:3000
string entityId = "a-entity-id";
int version = 2;
string entityIndexedId = "entityId1";
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.GlobalEntityService.UpdateEntityIndexedId(entityId, version, entityIndexedId, successCallback, failureCallback);
JSON Response
{
"data": {
"gameId": "123456",
"entityId": "218d19d1-cda9-48a7-a918-a796281219f1",
"ownerId": "77ce8889-20b7-4d01-b248-e0beb747f1b4",
"entityType": "address",
"entityIndexedId": "entityId1",
"version": 4,
"acl": {
"other": 1
},
"expiresAt": 9223372036854776000,
"timeToLive": -1,
"createdAt": 1557939144108,
"updatedAt": 1557939241957
},
"status": 200
}