Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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"
    }
}

  • No labels