const form = new FormData();
form.append("name", "my first storage");
form.append("content_type", "text/csv");
form.append("csv_separator", ",");
// column name inside the file
form.append("csv_column_names", "[\"SHA256\",\"POSTAL_CODE\"]");
form.append("file", "/path/to/file");
// indicate if csv contains a header to remove
form.append("csv_has_header", "1");
// indicate column position containing the hash (position start at 1, index at 0)
form.append("csv_mapping_column_position", "1");
fetch("https://gateway.sirdata.io/api/v1/public/customer/storage?=", {
"x-api-token": "XXXXX-XXXXX-XXXXX-XXXXX",
"content-type": "multipart/form-data; boundary=---011000010111000001101001"