smarthr_update_employee
WRITE: Change fields of one existing employee (partial update: only the fields you give change; others stay). Typical uses: set the status to absent or retired with the resignation date, correct a name, email or phone, move the employee to other departments (department_ids replaces the current list), change positions. SmartHR does not allow clearing a name that is already filled in. Returns the updated employee as a compact record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Employee id (from smarthr_list_employees). | |
| No | Work or contact email address. | ||
| grade | No | Grade name (等級). | |
| gender | No | Legal gender (戸籍上の性別): male or female. | |
| address | No | Address; the city is required by SmartHR. | |
| birth_at | No | Date of birth, yyyy-mm-dd. | |
| emp_code | No | Employee number (社員番号). | |
| last_name | No | Family name (戸籍上の姓). | |
| positions | No | Position (job title) NAMES, e.g. ["部長"]; a name that does not exist yet may be created by SmartHR. | |
| emp_status | No | Employment status: employed, absent (on leave) or retired. | |
| entered_at | No | Hire date, yyyy-mm-dd. | |
| first_name | No | Given name (戸籍上の名). | |
| occupation | No | Job description (業務内容). | |
| tel_number | No | Phone number. | |
| resigned_at | No | Resignation date, yyyy-mm-dd. | |
| job_category | No | Job category name (職種). | |
| department_ids | No | Department ids (from smarthr_list_departments); replaces the current departments. | |
| last_name_yomi | No | Family name in katakana. | |
| first_name_yomi | No | Given name in katakana. | |
| resigned_reason | No | Reason for leaving. | |
| business_last_name | No | Business name: family name. | |
| employment_type_id | No | Employment type id (from smarthr_list_employment_types). | |
| business_first_name | No | Business name: given name. | |
| biz_establishment_id | No | Business establishment id (from smarthr_list_business_establishments). |