Upload .CSV file to Thingworx via REST API
Hello,
I´m trying to upload a .CSV to Thingworx. I achieved it creating a service with CSV Parser, code:
var params = {
path: "/Tabla1.csv" /* STRING */,
columnMappings: "Temperature;Humidity;DateTime" /* STRING */,
hasHeader: true /* BOOLEAN */,
longitudeField: undefined /* NUMBER */,
dateFormat: "dd-mm-yy HH:mm:ss.sss" /* STRING */,
fileRepository: "DataLogger_1_Repository" /* THINGNAME */,
latitudeField: undefined /* NUMBER */,
fieldDelimiter: ";" /* STRING */,
stringDelimiter: "/" /* STRING */,
dataShape: "DataLogger_Shape" /* DATASHAPENAME */
};
// result: INFOTABLE
var result = Resources["CSVParserFunctions"].ReadCSVFile(params);
But now, I want send .CSV via REST API for instance with POSTMAN. I don´t know how I can do this. I put the URL (localhost:8080/Thingworx/Things/DataLogger_1_Repository/Services/), auth and headers but the body...
Could you help me with that?
Thank you in advance
BR
