Skip to main content
POST
Upload a file

Authorizations

Authorization
string
header
required

Personal API key (mkx_...) created from the MapX account.

Path Parameters

id
string
required

Project UUID.

Body

multipart/form-data
file
file
required

File to upload. Supported extensions: .csv, .geojson, .json, .xlsx, .xls, .txt, .md, .docx, .doc, .pdf, .tif, .tiff.

Response

Uploaded file record.

id
string

Layer id created for GeoJSON uploads.

label
string

Display name.

fileId
string

Uploaded file id.

addedToMap
boolean

Whether the file was automatically added as a layer.

featureCount
integer

Feature count for GeoJSON uploads.

geometryType
string

Detected geometry type (circle/line/fill) for GeoJSON uploads.

style
object

Layer style applied to the new layer.