Delete department personnel
| Properties | Values |
|---|---|
| HTTP method | POST |
| Interface path | /nd/api/enterprise/remove_dep_mem |
| Category | Enterprise API |
Interface description
Interface path: /nd/api/enterprise/remove_dep_mem
HTTP method: POST
HTTP method: POST
POST request body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
department_id |
string |
Yes | Department ID |
user_ids |
string[] |
Yes | JSON array of member IDs. The key is user_ids, without brackets; do not serialize the array into a string. |
Scroll horizontally to view all columns
Example request (identifiers are illustrative):
{
"department_id": "3001",
"user_ids": ["2001", "2002"]
}
Return field description
Success:
{"code":0,"success":true}
Failure:
{"code":2,"success":false}
These business result flags are confirmed. HTTP statuses and additional error fields are not supplied; a completed HTTP request alone does not establish business success.
Call instructions
- Before calling, you need to complete Get token or the corresponding login-free authentication, and carry
Authorization: Bearer <access_token>in the request header. - If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail.
- Category: Enterprise API.