How to restore soft-deleted enrollments?

Hi all,
Is it possible to some-how restore the enrollments, which were deleted this way:

Any help will be trully appriciated

Get it first from API point …/api/trackedEntityInstances/TEI_UID?fields=*
Find status DELETED and change to ACTIVE
Post back to api/trackedEntityInstances/ as payload
{“trackedEntityInstance”:[
Put here the TEI with right STATUS
]}

2 Likes