Single trackedentityAttribute update with web api

Is it possible to update one trackedentityAttribute with web api rather than whole TEI.

Regards…
Bayzed

1 Like

Hi @Bayzed,

You can try using the below payload:

https://yourserver/api/trackedEntityInstances
{
“trackedEntityInstances”: [{
“trackedEntityInstance”: “uid”,
“orgUnit”: “uid”,
“trackedEntityType”: “uid”,
“attributes”: [{
“attribute”: “att_id”,
“value”: “att_value”
}]
}, {
“trackedEntityInstance”: “uid”,
“orgUnit”: “uid”,
“trackedEntityType”: “uid”,
“attributes”: [{
“attribute”: “att_id”,
“value”: “att_value”
}]
}]
}
Regards
Julhas

1 Like

Thanks @julhas but this will remove all other data on that instance. I want to update only one field and other fields need to remain unchanged on a TEI.

Regards…
Bayzed

1 Like

Hi @Bayzed,

Have you found the solution to this problem?

Thanks

1 Like