From 7a162a0af5ca2c9d27333ea585ace23825df2c91 Mon Sep 17 00:00:00 2001 From: Rob Tucker Date: Thu, 17 Oct 2019 12:18:18 -0700 Subject: [PATCH] Added support for batch create requests --- lib/restapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,