---
id: "en/api-post-nd-api-enterprise-add-dep-mem"
title: "Add department personnel"
language: "en"
description: "POST /api/add_dep_mem.do: Add department personnel interface description, including path, method, parameters and return information."
canonical_url: "https://www.babel.cc/public/babelwiki/en/api-post-nd-api-enterprise-add-dep-mem.html"
markdown_url: "https://www.babel.cc/public/babelwiki/ai/en/api-post-nd-api-enterprise-add-dep-mem.md"
alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-post-nd-api-enterprise-add-dep-mem.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-post-nd-api-enterprise-add-dep-mem.md"}
reading_note: "文档记录不等于当前部署能力；以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明，勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts."
---

# 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 |

#### Response {#response-status}

Business results for adding department members:

Success:

```json
{"code":0,"success":true}
```

Failure:

```json
{"code":2,"success":false}
```

## Call instructions

- Before calling, you need to complete [Get token](https://www.babel.cc/public/babelwiki/en/api-post-api-token-do.html) 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.
