Hi there,
I found few TEIs marked as potential duplicates. Although the records consists only one teiA as shown below:
{
"lastUpdated": "2021-10-19T16:20:28.646",
"created": "2021-10-19T16:20:28.646",
"id": "PTfXXgP0Vo9",
"teiA": "VvjPGc6fyM9",
"status": "OPEN",
"lastUpdatedBy": {
"displayName": "userName",
"name": "userName",
"id": "HmHGTJES06Z",
"username": "userName"
}
So as long as there are no teiB, I have decided to update the flag by executing
PUT http://serverAddress:port/api/trackedEntityInstances/VvjPGc6fyM9/potentialDuplicate
command. But failed as shown below:
<body>
<h1>HTTP Status 404 – Not Found</h1>
<hr class="line" />
<p><b>Type</b> Status Report</p>
<p><b>Description</b> The origin server did not find a current representation for the target resource or is not
willing to disclose that one exists.</p>
<hr class="line" />
<h3>Apache Tomcat/9.0.67</h3>
</body>
Have tried to send the “flag” parameter as payload {"flag": false}
and just part of uri ?flag=false.
Could anyone tell me how I can unflag the TEIs by using this API point?
I am using DHIS 2.36
Thank you
Regards, Ulanbek