diff --git a/src/dtable-web-api.js b/src/dtable-web-api.js index aac3826d..4e84c94f 100644 --- a/src/dtable-web-api.js +++ b/src/dtable-web-api.js @@ -2175,10 +2175,13 @@ class DTableWebAPI { return this.req.delete(url); } - importCommonDataset(datasetId, dst_dtable_uuid) { + importCommonDataset(datasetId, dst_dtable_uuid, toArchive) { let url = this.server + '/api/v2.1/dtable/common-datasets/' + datasetId + '/import/'; let formData = new FormData(); formData.append('dst_dtable_uuid', dst_dtable_uuid); + if (toArchive) { + formData.append('to_archive', toArchive); + } return this._sendPostRequest(url, formData); }