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