lib/api/modules/spaces.js
function (spaceIdentifier, data) {
    var path;
    if (data) {
      path = this.constructPath(constants.SPACES, spaceIdentifier);
      return this.Core.PATCH(path, data);
    } else {
      return this.rejectRequest('Bad Request: Space data is required');
    }
  }
function (spaceIdentifier, data) {
    var path;
    if (data) {
      path = this.constructPath(constants.SPACES, spaceIdentifier);
      return this.Core.PATCH(path, data);
    } else {
      return this.rejectRequest('Bad Request: Space data is required');
    }
  }
function ( spaceIdentifier , data ) { var path ; if ( data ) { path = this . constructPath ( constants . SPACES , spaceIdentifier ) ; return this . Core . PATCH ( path , data ) ; } else { return this . rejectRequest ( 'Bad Request: Space data is required' ) ; } }
Update a space
@param  {String|Integer} spaceIdentifier A Robin space identifier
@param  {Object}         data            A data object
@return {Function}                       A promise
Update a space