1.61 Filled organisation unit levels

The filledOrganisationUnitLevels resource provides an ordered list of organisation unit levels, where generated levels are injected into the list to fill positions for which it does not exist a persisted level.

GET /api/26/filledOrganisationUnitLevels

To set the organisation unit levels you can issue a POST request with a JSON payload looking like this.

  "organisationUnitLevels": [{
    "name": "National",
    "level": 1,
    "offlineLevels": 3
  }, {
    "name": "District",
    "level": 2
  }, {
    "name": "Chiefdom",
    "level": 3
  }, {
    "name": "Facility",
    "level": 4

To do functional testing with curl you can issue the following command.

curl "http://localhost/api/26/filledOrganisationUnitLevels" -H "Content-Type:application/json"
  -d @levels.json -u admin:district -v