lib/api/modules/locations.js
function (locationIdentifier, data) {
      var path;
      if (locationIdentifier) {
        path = this.constructPath(constants.LOCATIONS, locationIdentifier, constants.SPACES);
        return this.Core.POST(path, data);
      } else {
        return this.rejectRequest('Bad Request: A location identifier is required.');
      }
    }
function (locationIdentifier, data) {
      var path;
      if (locationIdentifier) {
        path = this.constructPath(constants.LOCATIONS, locationIdentifier, constants.SPACES);
        return this.Core.POST(path, data);
      } else {
        return this.rejectRequest('Bad Request: A location identifier is required.');
      }
    }
function ( locationIdentifier , data ) { var path ; if ( locationIdentifier ) { path = this . constructPath ( constants . LOCATIONS , locationIdentifier , constants . SPACES ) ; return this . Core . POST ( path , data ) ; } else { return this . rejectRequest ( 'Bad Request: A location identifier is required.' ) ; } }
Add space to a location
@param  {String|Integer} locationIdentifier A Robin location identifier
@param  {Object}         data               A querystring object
@return {Function}                          A Promise
Add space to a location