How to REHIRE a terminated employee using Worker REST API ?
I tried rehiring a terminated employee using Update a worker work Relationship, Update a worker Assignment, Create a Worker and Update a Worker REST APIs , but no luck. In front end, using New Person -> Hire an Employee - > we provide the names and choose matching person records for Rehire. Similarly , I'm passing the required fields and getting following errors.
You must enter a valid value for the LegalEmployerName field. (PER-1530231)
A person number with this value already exists. Enter a unique value.
or when I remove the terminated employee reference, it creates a new person but different person number.