diff --git a/src/dtable-web-api.js b/src/dtable-web-api.js index c3138ffc..26ce5850 100644 --- a/src/dtable-web-api.js +++ b/src/dtable-web-api.js @@ -2216,10 +2216,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); }