...

  1. Check ID exists in MPI.prepersons

    1. In case error - 404

  2. Check preperson has status=active

    1. In case error - return 422 (Preperson is not active)

Validate

...

request

Validate shcema request using schema (TBD)

  1. Check if any allowed field is submitted and have value:

    • first_name

    • last_name

    • second_name

    • gender

    • external_id

    • birth_date

    • emergency_contact

    • confidant_person

      1. In case of error - return 422 (Schema validation failed)

  2. Check if any forbidden field is submitted:

    • note

    • status

      1. In case of error - return 422 (Schema validation failed)

...