Add department personnel
| Properties | Values |
|---|---|
| HTTP method | POST |
| Interface path | /api/add_dep_mem.do |
| Category | Enterprise API |
Interface description
Interface path: /api/add_dep_mem.do
HTTP method: POST
HTTP method: POST
POST request body parameters
| Parameter | Type | Description (source requirements, defaults and scope) |
|---|---|---|
department_id |
string |
department id (required) |
user_ids[] |
string[] |
user list |
role_id |
string |
The user's role in the department |
Scroll horizontally to view all columns
Response
Business results for adding department members:
Success:
{"code":0,"success":true}
Failure:
{"code":2,"success":false}
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.