Thread Previous • Date Previous • Date Next • Thread Next |
Hi all, to import events via webAPI in CSV format I'm following the indications at this link: http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s15.html#d5e1904 but the server keeps returning the error "The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.". It's a simple csv, I have no idea of what I'm doing wrong. As a target URL I'm using /api/events.csv Attached the file I'm sending. Thank you in advance for any help, Iuri -- @-`-,--
"event","status","program","programStage","enrollment","orgUnit","eventDate","dueDate","latitude","longitude","dataElement","value","storedBy","providedElsewhere" ,"COMPLETED","g9UTEvaaxDk","PcHDCBjoXU4",,"KqL71SkeKpc","2015-03-13",,,,"nqhuoslbDCx","2000-01-01",, ,"COMPLETED","g9UTEvaaxDk","PcHDCBjoXU4",,"KqL71SkeKpc","2015-03-13",,,,"RMEnhvTVUOx","M",, ,"COMPLETED","g9UTEvaaxDk","PcHDCBjoXU4",,"KqL71SkeKpc","2015-03-13",,,,"hZ0g07DtKlB","IDP",, ,"COMPLETED","g9UTEvaaxDk","PcHDCBjoXU4",,"KqL71SkeKpc","2015-03-13",,,,"QyX23E7XKrU","999999",, ,"COMPLETED","g9UTEvaaxDk","PcHDCBjoXU4",,"KqL71SkeKpc","2015-03-13",,,,"mmrNCWtSeuU","BCG + OPV (zero dose) + HBV (1st dose)",,
Thread Previous • Date Previous • Date Next • Thread Next |