← Back to team overview

dhis2-devs team mailing list archive

Re: API Call for Append Single Addition or Single Subtraction

 

Hi

We have a simple API for adding/removing a -single- object from a
collection [1]. That would probably help you? PATCH support is still a bit
flaky sadly, and really only works for primitives, I'm hoping to add fixes
to it in 2.23/2.24.

[1]
http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s10.html#d5e848

On Mon, Feb 8, 2016 at 4:27 PM, Timothy Harding <tharding@xxxxxxxxxxxxxx>
wrote:

> Hello Devs,
>
> I've looked at the following but I think my ask is slightly different:
> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s10.html#d5e875
>
> Ive got a data element group with a fair amount of data elements in it.
> Rather than downloading the whole thing, appending to that what I would
> like to add, and re-uploading the result, is there a way to just send a
> single new value I would like to add? In a similar vein, is there a way to
> do a single removal?
>
> If not, is there a way to include a data element's group membership in the
> <dataElement> node and have DHIS2 add it to the proper group?
>
> If not, this would be helpful in rapidly changing systems where you might
> not know 100% what should be in a data element group, but you are 100% sure
> that your new element belongs there.
>
>
>
> *Timothy Harding*
> Sr. Systems Analyst, BAO Systems
> +1 202-536-1541 | tharding@xxxxxxxxxxxxxx | http://www.baosystems.com | Skype:
> hardingt@xxxxxxxxx | 2900 K Street, Suite 404, Washington D.C. 20007
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Morten

PNG image


References