smarthr_create_department
WRITE: Create a department (部署). Give the parent department id to nest it. Returns the created department.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Department code. | |
| name | Yes | Department name (no slash). | |
| position | No | Display order among siblings. | |
| parent_id | No | Parent department id (from smarthr_list_departments); omit for a top-level department. | |
| company_id | No | Company id (from smarthr_list_companies); needed when the tenant has several companies. |