Job Types
Import indicator timeseries data from CSV
Changed onImport rows for one indicator value from a completed resumable CSV upload into an indicator/timeseries project. Upload the CSV first via POST /api/uploads/* to obtain upload_id. Equivalent to POST /jobs with job_type import_indicator_data.
post/jobs/import_indicator_data
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.
Request body
Example request
{
"indicator_value": "NY.GDP.PCAP.CD",
"delimiter": ","
}Response
Job created successfully
Example response
{
"status": "success",
"message": "Job created successfully",
"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
- info
endpoint added
- info