/// <summary>
        /// Updates an Identty
        /// </summary>
        /// <param name="identity">Identity to update</param>
        /// <returns>Updated Identity</returns>
        public Identity Update(Identity identity)
        {
            GraphQuery.POST(string.Format(Enjin.IdentityTemplate.GetQuery["UpdateIdentity"], identity.id.ToString(), identity.user.id.ToString(), identity.ethereum_address, EnjinHelpers.GetFieldsString(identity.fields)));

            if (Enjin.ServerResponse != ResponseCodes.SUCCESS)
            {
                return(null);
            }

            return(JsonUtility.FromJson <Identity>(EnjinHelpers.GetJSONString(GraphQuery.queryReturn, 1)));
        }
        /// <summary>
        /// Updates an identities fields property
        /// </summary>
        /// <param name="id">ID of idenitiy to update</param>
        /// <param name="fields">Updated fields object</param>
        /// <returns>Updated Identity</returns>
        public Identity UpdateFields(int id, Fields[] fields)
        {
            GraphQuery.POST(string.Format(Enjin.IdentityTemplate.GetQuery["UpdateFields"], id.ToString(), EnjinHelpers.GetFieldsString(fields)), Enjin.AccessToken);

            if (Enjin.ServerResponse != ResponseCodes.SUCCESS)
            {
                return(null);
            }

            return(JsonUtility.FromJson <Identity>(EnjinHelpers.GetJSONString(GraphQuery.queryReturn, 1)));
        }