PUT /rest/orgwise/3/department/{id}/move?parent={parent}
DESCRIPTION
Modify the parent of a department. Information modification will produce change records.
MEDIA TYPE
application/json
PATH PARAM
Param | Description | Required |
---|---|---|
id | The ID or No. of a department. | Required |
QUERY PARAM
Param | Description | Required |
---|---|---|
parent | The ID or No. of the new parent department. | Required |
RESPONSE
{ "code": 0, "msg": "Success", "data": { "id": 513, "no": "D513", "name": "Dev", "type": "DEPARTMENT", "parent": 15, "parentDepartment": { "id": 15, "no": "D16", "name": "IT", "type": "DEPARTMENT", "createTime": "2022-03-15 13:00:39", "parent": 1 }, "rootDepartmentId": 1, "createTime": "2022-03-16 15:57:23.063" } }