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