lib/api/modules/organizations.js
function (orgIdOrSlug, userId, data) {
      var path,
          rejectMsg;
      if (orgIdOrSlug && userId && data) {
        path = this.constructPath(constants.ORGANIZATIONS, orgIdOrSlug, constants.USERS, userId);
        return this.Core.PATCH(path, data);
      } else {
        rejectMsg = 'Bad Request: An organization id or slug and a user id and data is required.';
        return this.rejectRequest(rejectMsg);
      }
    }
function (orgIdOrSlug, userId, data) {
      var path,
          rejectMsg;
      if (orgIdOrSlug && userId && data) {
        path = this.constructPath(constants.ORGANIZATIONS, orgIdOrSlug, constants.USERS, userId);
        return this.Core.PATCH(path, data);
      } else {
        rejectMsg = 'Bad Request: An organization id or slug and a user id and data is required.';
        return this.rejectRequest(rejectMsg);
      }
    }
function ( orgIdOrSlug , userId , data ) { var path , rejectMsg ; if ( orgIdOrSlug && userId && data ) { path = this . constructPath ( constants . ORGANIZATIONS , orgIdOrSlug , constants . USERS , userId ) ; return this . Core . PATCH ( path , data ) ; } else { rejectMsg = 'Bad Request: An organization id or slug and a user id and data is required.' ; return this . rejectRequest ( rejectMsg ) ; } }
Update a user in an organization
@param  {String|Integer} orgIdOrSlug A Robin organization id or slug
@param  {String|Integer} userId      A Robin user id
@param  {Object}         data      A data object
@return {Function}                   A promise
Update a user in an organization