/
4.2.1.5 Get the flat list of all descendant departments of a department

4.2.1.5 Get the flat list of all descendant departments of a department

GET /rest/orgwise/2/department/{id}/allDepartments

DESCRIPTION

Get the flat list of all departments of a department. The list includes descendants of any sub departments.

MEDIA TYPE

application/json

PATH PARAM

Param

Description

Required

Param

Description

Required

id

The ID or No. of a department.

Required

QUERY PARAM

Param

Description

Required

Param

Description

Required

start

Paging parameter, indicating the starting point. The default is 0.

Optional

limit

Paging parameter, indicating searching for how many items. The default is -1, which means there is no limit.

Optional

RESPONSE

{ "code": 0, "msg": "Success", "data": { "values": [ { "id": 2, "no": "D2", "name": "Dev", "type": "DEPARTMENT", "createTime": "2022-06-07 11:21:01", "parent": 1 } ], "isMore": false } }