← Back to team overview

dhis2-devs team mailing list archive

[Bug 1608644] Re: DHIS2 Tracker API Not inserting Relationships

 

Hi

Sorry, the API is not very clear here. What you need to do, is to
reference a relation ship type using the "relationship" property, if you
don't have any relationship types in the system, they can be created
through /api/relationshipTypes

So the full payload should be something like this:

{ trackedEntityInstanceA: "UID", trackedEntityInstanceB: "UID",
relationship: "UID }

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1608644

Title:
  DHIS2 Tracker API Not inserting Relationships

Status in DHIS:
  New

Bug description:
  I am trying to send a json payload to update relationships for several hundred thousand tracked entities when I test with 10 records, I am getting a psql exception that null failed for column relationship typeid. I have set the column to NULL and succeeded in sending the JSON payload. I suspect the API CODE IS NOT setting the relationship typeid in the relationship table. The version of DHIS2 that I am using is 2.24 and build version is 23530.
  rgds
  David

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1608644/+subscriptions


Follow ups

References