docs: function(apiId) {
          return module.exports.fetchExistingStages(apiId).then(function(stages) {
              // If there are no stages, then delete the API
              if (!stages || stages.length === 0) {
                  return module.exports.deleteAPI(apiId);
              }
  
              return apiId;
          });
      }