Upload File
POST
/ingest/upload
const url = 'https://example.com/api/ingest/upload';const form = new FormData();form.append('file', 'example');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/ingest/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=exampleUpload a geospatial file for staging.
Validates the file extension, creates an ingest job, and saves the file to staging. Does NOT auto-queue ingestion — use preview then commit.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type multipart/form-data
Body_upload_file_ingest_upload_post
object
file
required
File
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
UploadResponse
object
job_id
required
Job Id
Unique identifier for the ingestion job. Use this to poll status and to commit the upload.
string format: uuid
status
Status
Initial job status. Always ‘pending’ on creation.
string
message
required
Message
Human-readable message describing the upload result.
string
Example
{ "status": "pending"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}