code: function update() {
      var $this = this,
        self = User.resourceConstructor().call(this, this.id);
  
      return self.update.apply(self, arguments).then(function (updated) {
        Utils.extend($this, updated, true);
        return updated;
      });
    }
docs: Allow to update the current user without an explicit API call. Simply update the user scope object and call update will make the request to update the user in the *'/users'* endpoint.