...

  1. Check at least one of allowed field is submitted and has value:

    • first_name

    • last_name

    • second_name

    • gender

    • external_id

    • birth_date

    • emergency_contact

    • death_date

      confidant_person

      • 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)

...

Parameter

Source

Description

external_id

Request: external_id

Identifier from external system. Get from request body

first_name

Request: first_name

 

second_name

Request: second_name

 

last_name

Request: last_name

 

gender

Request: gender

 

birth_date

Request: birth_date

 

emergency_contact

Request: emergency_contact

 

confidant_person

Request: confidant_person

 

death_date

Request: death_date

updated_at

timestamp: now()

Get current date-time

updated_by

uuid

Extract user from token