Create department

View as Markdown
Tạo một phòng ban mới trong hệ thống. **Body Params (Json/form-data)** | **Param** | **Kiểu dữ liệu** | **Bắt buộc** | **Default** | **Mô tả** | | --- | --- | --- | --- | --- | | name | string(255) | Có | | Tên phòng ban | | parent_id | Integer | Không | 0 | Phòng ban cha. nếu giá trị là 0 hoặc không truyền phòng ban được tạo sẽ là phòng ban gốc | | owner_department | Integer | Không | null | ID của nhân sự phụ trách | | description | String(500) | Không | null | Mô tả phòng ban | **Response:** Xem example response

Request

This endpoint expects an object.
namestringRequired
parent_idstringRequired
descriptionstringRequired
owner_departmentstringRequired

Response

OK
dataobject
statusstring