smarthr_update_department
WRITE: Rename or move one department (partial update: only the fields you give change). Returns the updated department.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Department id (from smarthr_list_departments). | |
| code | No | New code. | |
| name | No | New name (no slash). Omit to keep the current name. | |
| position | No | New display order among siblings. | |
| parent_id | No | New parent department id. |