Re: [Dhis2-devs] DHIS2- API

2017-10-10 Thread Vladimer Shioshvili
Hi Omer, api/metadata endpoint is used for creating new data elements. You can read more about it in the developer's manual: https://docs.dhis2.org/2.27/en/developer/html/dhis2_developer_manual_full.html#webapi_metadata_crud Same section, specifically 1.9.4 - https://docs.dhis2.org/2.27/en/develo

[Dhis2-devs] DHIS2- API

2017-10-09 Thread Omer Butt
Sir, I am in searching of couple of API's that respond according to my need. 1 : Any API that can generate/create data element ??? 2: Any API that can add newly created data elements to specific data set. Any Information regarding API's that will help my problem. Thanks. __

Re: [Dhis2-devs] DHIS2- API

2017-09-20 Thread Lars Helge Ă˜verland
Hi Omer, have a look at the docs: https://docs.dhis2.org/master/en/developer/html/webapi_data_values.html#webapi_sending_data_values You can use the "completeDate" property to indicate the date the data set was completed: { "dataSet": "pBOMPrpg1QX", "completeDate": "2014-02-03", "period":

[Dhis2-devs] DHIS2- API

2017-09-19 Thread Omer Butt
Hi , I used that api for sending data values from api to dhis2 DB. (data values of data sets) URL: curl -d @datavalueset.json "https://play.dhis2.org/demo/api/26/dataValueSets"; -H "Content-Type:application/json" -u admin:district -v Values Are send successfully to DHIS2 DB .But how to tell d

Re: [Dhis2-devs] DHIS2- API

2017-08-28 Thread Harsh Atal
Hi, You can filter by current user UID on the dataset endpoint : /api/dataSets?fields=id,name,user&filter=user.id:eq:*UID* On 28 August 2017 at 15:03, Omer Butt wrote: > Sir, > > How to get Data sets of current user login? > > Thanks > > ___ > Maili

[Dhis2-devs] DHIS2- API

2017-08-28 Thread Omer Butt
Sir, How to get Data sets of current user login? Thanks ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

Re: [Dhis2-devs] DHIS2-API

2017-08-24 Thread Harsh Atal
Hi Try this : *api/organisationUnits?fields=[id,name,attributeValues]* Harsh On 24 August 2017 at 16:05, Omer Butt wrote: > Sir, > I have create a Extra attribute for Organization Unit. > that is Fatype is my case which is added with org unit which are at level > 6. > > *for example : * > *Ama

[Dhis2-devs] DHIS2-API

2017-08-24 Thread Omer Butt
Sir, I have create a Extra attribute for Organization Unit. that is Fatype is my case which is added with org unit which are at level 6. *for example : * *Amand is orgunit. their fatype is BHU.* how can i access it with the org unit using api ?? Thanks. __

Re: [Dhis2-devs] DHIS2 API feedback

2016-10-24 Thread Morten Olav Hansen
On Mon, Oct 24, 2016 at 3:21 PM, Martin Van Aken wrote: > Regarding my question re: user rights through the API, maybe I was > mistaken. Just to be sure: if I connect with a specific user using the API, > I should get exactly the same access as I get through the UI with the same > user, correct?

Re: [Dhis2-devs] DHIS2 API feedback

2016-10-24 Thread Martin Van Aken
Hi, Thanks for the "report mode", I'll try that out. Regarding my question re: user rights through the API, maybe I was mistaken. Just to be sure: if I connect with a specific user using the API, I should get exactly the same access as I get through the UI with the same user, correct? Martin On M

Re: [Dhis2-devs] DHIS2 API feedback

2016-10-23 Thread Morten Olav Hansen
> > >- *Return IDs of created items:* when we create a meta data (org unit, >data element, etc), the API should return the newly created object id (or >ids if multiple ones). Failed to do so require us to make a second call >using a field to fetch the object back, this being a risky

[Dhis2-devs] DHIS2 API feedback

2016-10-18 Thread Martin Van Aken
Hi DHIS2 devs! We've been using your API for a while now, and if the experience has been mostly pleasant, there are some aspects which are making our work more difficult, so I wanted to let you know what would make our life easier: - *Return IDs of created items:* when we create a meta data (o