...
Select inserted_at from il.person_requests of this preperson merge request
Compare user_id belongs to the same legal_entity_id where the preperson merge request was created.
If not match - return 422 error (User doesn’t belong to legal entity where the preperson merge request was created)
Update object in DB
mpi.personmerge_requeststable
Parameter | Source | Description |
status | Request: status | Status of the request, required. Set REJECTED |
updated_by | uuid | Extract user from token |
updated_at | timestamp | Get current date-time |