diff --git a/api/api/create.js b/api/api/create.js index 462407692..727cc2f0a 100644 --- a/api/api/create.js +++ b/api/api/create.js @@ -86,19 +86,6 @@ function buildCreate (opts) { ) } - // check required url components - if (params['id'] != null && (params['type'] == null || params['index'] == null)) { - return callback( - new ConfigurationError('Missing required parameter of the url: type, index'), - result - ) - } else if (params['type'] != null && (params['index'] == null)) { - return callback( - new ConfigurationError('Missing required parameter of the url: index'), - result - ) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { return callback( diff --git a/api/api/get_source.js b/api/api/get_source.js index 2578a0252..9a738e7e1 100644 --- a/api/api/get_source.js +++ b/api/api/get_source.js @@ -90,19 +90,6 @@ function buildGetSource (opts) { ) } - // check required url components - if (params['id'] != null && (params['type'] == null || params['index'] == null)) { - return callback( - new ConfigurationError('Missing required parameter of the url: type, index'), - result - ) - } else if (params['type'] != null && (params['index'] == null)) { - return callback( - new ConfigurationError('Missing required parameter of the url: index'), - result - ) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { return callback(