Skip to content

Commit

Permalink
import common dataset add to_archive param
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCXC committed Jan 7, 2023
1 parent dcaa817 commit 19938f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dtable-web-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 19938f1

Please sign in to comment.