Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Example request body

{
  "persons": {
    "Tahi": {
      "social_security__eligible_for_accommodation_supplement": {
        "2018-08": null
      },
      "age": { "2018-08": 30},
      "normally_lives_in_nz": { "2018-08": true },
      "is_resident": { "2018-08":  true },
      "has_accomodation_costs": { "2018-08":  true },
      "eligible_for_social_housing": { "2018-08": false},
      "income_below_threshold_for_accommodation_supplement": { "2018-08":  true},
      "cash_below_threshold_for_accommodation_supplement": { "2018-08": true}
    }
  },
  "families": {
  	"first": {
  		"principal_caregiver": ["Tahi"]
  	}
  },
  "titled_properties": {
    "property_1": {
      "owners": [
        "Tahi"
      ]
    }
  }
}

Example response

{
    "families": {
        "first": {
            "principal_caregiver": [
                "Tahi"
            ]
        }
    },
    "persons": {
        "Tahi": {
            "age": {
                "2018-08": 30
            },
            "cash_below_threshold_for_accommodation_supplement": {
                "2018-08": true
            },
            "eligible_for_social_housing": {
                "2018-08": false
            },
            "has_accomodation_costs": {
                "2018-08": true
            },
            "income_below_threshold_for_accommodation_supplement": {
                "2018-08": true
            },
            "is_resident": {
                "2018-08": true
            },
            "normally_lives_in_nz": {
                "2018-08": true
            },
            "social_security__eligible_for_accommodation_supplement": {
                "2018-08": true
            }
        }
    },
    "titled_properties": {
        "property_1": {
            "owners": [
                "Tahi"
            ]
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment