davidhuser / dhis2.py

Generic and lightweight Python wrapper for the DHIS2 API using requests
MIT License
15 stars 12 forks source link

api.delete does not allow payload #9

Closed plinnegan closed 6 years ago

plinnegan commented 6 years ago

Description

Cannot remove dataElements from dataElementGroups as in DHIS2 dev guide, section: 1.9.4.2. Adding or removing multiple objects Here you are required to DELETE with a payload of the dataElements in the group you wish to remove. Attempting a DELETE with payload parameter of either json= or data= fails as this is not supported currently in dhis2.py. Could you please add this feature in the next release?

Many thanks, Pete

davidhuser commented 6 years ago

resolved in version 1.8.0 and PR https://github.com/davidhuser/dhis2.py/pull/10