Skip to content

Instantly share code, notes, and snippets.

@aleksa-krolls
Last active April 19, 2019 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aleksa-krolls/40d212ab6de7a47db9c92731bae1e570 to your computer and use it in GitHub Desktop.
Save aleksa-krolls/40d212ab6de7a47db9c92731bae1e570 to your computer and use it in GitHub Desktop.
Example payload for creating & enrolling a TEI in the Farmer Tracker program
{
"trackedEntity": "UgB6oOE7jYb",
"orgUnit": "dVtKvuWFMaP",
"attributes": [
{
"attribute": "kKbVP14xj1A",
"value": "A35789235"
},
{
"attribute": "mrRDbHRkOSV",
"value": "A35789235Farmer 3"
},
{
"attribute": "HA0tSkhQSzU",
"value": "Farmer 3"
},
{
"attribute": "OEoCWCPvYQt",
"value": "Gorigo Tsambaki A Alheri Women FADAMA Farmers Cooperative Society LTD "
}
],
"enrollments": [ {
"orgUnit": "dVtKvuWFMaP",
"program": "IrV2DDQkGvJ",
"enrollmentDate": "2019-04-19",
"incidentDate": "2019-04-19"
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment