Added

Children API accepts and returns a child's level of care

Children API accepts and returns a child's level of care

POST /api/v1/children and PUT /api/v1/children/{child_id} accept two new fields:

  • level_of_care: the slug of a level of care configured for the agency's agency type. Matched
    ignoring case; a slug from another agency's list is rejected.
  • level_of_care_start_date: the date the level of care took effect. Required when level_of_care
    is sent; it cannot be in the future or before the child's current level of care start date.

Both fields must be sent together. level_of_care: null is rejected; omitting the field leaves the
current level unchanged. Re-sending the level the child already has is a no-op and keeps the stored
start date. Changing the level updates the child's requirement schedules, the same as the portal.

GET, POST and PUT responses now include level-of-care (the slug) and level-of-care-start-date.