src/registration/survey.js
function scopeUrl(options, inst, action) {
    var opts = _.extend({}, inst, options)
    if (!opts.id && !opts.tournament_id && !opts.league_id && !opts.season_id)
      throw new Error('id, season_id, tournament_id or league_id required to make survey api calls')
    return Survey.urlRoot() + '/' + action + (opts.id ? '/' + opts.id : '') + '.json'
  }
function scopeUrl(options, inst, action) {
    var opts = _.extend({}, inst, options)
    if (!opts.id && !opts.tournament_id && !opts.league_id && !opts.season_id)
      throw new Error('id, season_id, tournament_id or league_id required to make survey api calls')
    return Survey.urlRoot() + '/' + action + (opts.id ? '/' + opts.id : '') + '.json'
  }
Scopes the url to the tournament or flight

@param {Object} options
@returns {String}
@api public