Data
API call to parse the spreadsheet data
/data/spreadsheet/parse
Parse spreadsheet file (.xlsx, .xls, .csv) and store it in internal storage.
Parameters
file
File to upload.
file
preview_count
Size of preview. Min=1, max=20.
int
parse_header
Parse first row as header.
boolean
header_map
If parse_header is true should contains map of matching column name to field identifier, {"Label": "label", "Latitude": "lat"}.
JSON object
If parse_header is set to true, first row of the uploaded file will be treated as header corresponding to given header_map.
Response
{
"file_id": "568539",
"header": ["header1", "header2"],
"preview": ["preview of file 1", "preview of file 2"]
}file_id- string. Unique file ID.header- optional string array. List of files' headers.preview- string array. First N rows of file.
Errors
234 – Invalid data format.
/data/import/list
Returns the list of the user's import processes.
Parameters
types
Optional. Types of the imported entities, e.g. ["vehicle", "employee"].
string array
Response
Example
cURL
/data/import/read
Returns an import process with specified ID.
Parameters
process_id
Process ID
int
type
Type of the imported entities
string
Response
Example
cURL
Errors
201 – Not found in database (if import is not found)
Last updated
Was this helpful?