diff --git a/lib/restapi.js b/lib/restapi.js index 35d3af8..8a1e17f 100644 --- a/lib/restapi.js +++ b/lib/restapi.js @@ -126,7 +126,7 @@ export default class RestApi { return this.request.post( _.merge( { - url: `/${options.type}/create`, + url: options.type === 'batch' ? `/batch` : `/${options.type}/create`, json: postBody }, options.requestOptions,