Import Microdata files
Changed onUpload and import a data file in one step (multipart/form-data). Creates an import_microdata background job after upload. Equivalent to uploading separately then POST /jobs with job_type import_microdata and payload file_id + project_id.
Request
- Base URLhttps://localhost/index.php/api
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Project ID where the data file will be imported
Request body multipart/form-data
Response
File uploaded and job created successfully
Example response
{
"status": "success",
"message": "File uploaded and import job created successfully",
"file_id": "F4",
"job": {
"payload": {
"project_id": 123,
"options": {}
},
"result": {
"pdf_path": "/path/to/project_123.pdf",
"project_id": 123,
"generated_at": "2025-01-11 16:30:45"
}
}
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - breaking
added to the
/response propertyoneOflist for the response status - breaking
the
/response's property type changed fromobjectto no type for status - breaking
the
/response's property type changed fromobjectto no type for status - warning
added the new
generate_microdata_resourceenum value to the/response property for the response status - warning
added the new
generate_pdfenum value to the/response property for the response status - warning
added the new
hello_worldenum value to the/response property for the response status - warning
added the new
import_indicator_dataenum value to the/response property for the response status - warning
added the new
import_microdataenum value to the/response property for the response status - warning
added the new
publish_projectenum value to the/response property for the response status
- breaking
- warning
added the new
heldenum value to the/response property for the response status - info
added the new optional request property
- warning