code: public Observable<ComapiResult<Map<String, Object>>> updateProfile(@NonNull final Map<String, Object> profileDetails, final String eTag) {
  
          final String token = getToken();
  
          if (sessionController.isCreatingSession()) {
              return getTaskQueue().queueUpdateProfile(profileDetails, eTag);
          } else if (TextUtils.isEmpty(token)) {
              return Observable.error(getSessionStateErrorDescription());
          } else {
              return doUpdateProfile(token, dataMgr.getSessionDAO().session().getProfileId(), profileDetails, eTag);
          }
      }
docs: Updates profile for an active session.
  
  @param profileDetails Profile details.
  @param eTag           ETag for server to check if local version of the data is the same as the one the server side.
  @return Observable with to perform update profile for current session.