Property | Required | Details | Location |
---|---|---|---|
employee_uuid |
Must be a String |
JSON | |
hire_date |
Must be a Date |
JSON | |
original_hire_date |
Must be a Date |
JSON | |
adjusted_hire_date |
Must be a Date |
JSON | |
termination_date |
Must be a Date |
JSON | |
last_date_worked |
Must be a Date |
JSON | |
last_date_paid |
Must be a Date |
JSON | |
is_on_leave |
Must be one of: '0': Not on leave '1': On leave |
JSON | |
is_terminated |
Must be one of: '0': Not terminated '1': Terminated |
JSON | |
termination_is_voluntary |
Must be one of: '0': Not voluntary '1': Voluntary |
JSON | |
termination_reason_uuid |
Obtained from a separate TerminationReason request Must be a String |
JSON | |
termination_reason_comments |
Must be a String |
JSON |
POST /hr_api/v1/employments { "employee_uuid": "2cd9b201-9f7c-4f3e-8de8-94d9d7ac2804", "hire_date": "2016-11-03T00:00:00.000+00:00" } 201 { "employment": { "uuid": "19f726a7-2365-41b0-9552-ebc1bab5de48", "hire_date": "2016-01-01T00:00:00.000+00:00", "original_hire_date": "2016-01-01T00:00:00.000+00:00", "adjusted_hire_date": "2016-01-01T00:00:00.000+00:00", "is_on_leave": false, "is_terminated": true, "termination_is_voluntary": true, "termination_reason_comments": null, "termination_date": "2016-02-02T00:00:00.000+00:00", "last_date_worked": "2016-02-02T00:00:00.000+00:00", "last_date_paid": null, "employee_id_string": "123456", "employee": { "uuid": "737c1dd0-4134-4743-849d-8e38d0e11644" }, "keyword_type": "ReasonForLeaving", "keyword_id": null, "termination_reason": { "uuid": "5e4405f6-532c-46be-a72a-8b372803525b" }, "category_code": "reaon_for_leaving", "comments": "<p>comment for test reason for leaving</p>", "sort": 100, "category_status": "active", "category_description": "test reason for leaving keyword" } }