Creates new ending cooperation entity.
curl --request POST \
--url 'URL/api/employees/endedWork' \
--header 'authorization: Bearer TOKEN' \
--header 'content-type: application/json' \
--data '{
"email": "[email protected]",
"nextCompany": "Company Name",
"whoEndedCooperation": "Employee",
"exitInterview": true,
"checklist": false,
"comment": "Text comment",
"dismiss": "2019-12-31"
}'
ROLE_HR
role or above.
JSON object:
{
"email": "[email protected]",
"nextCompany": "Company Name",
"whoEndedCooperation": "Employee",
"exitInterview": true,
"checklist": false,
"comment": "Text comment",
"dismiss": "2019-12-31"
}
email
- Employee's emailnextCompany
- name of Employee's new employerwhoEndedCooperation
- either "Employee" or "Company"exitInterview
-true
if exit interview was heldchecklist
-true
if leave checklist was donecomment
- HR commentdismiss
- date in YYYY-MM-DD format.
Empty JSON object.