批量删除员工信息
POST
/eims/api/v2/admin/staffs/actions/delete
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
员工信息集合
userIds
array[string] | null
可选
mobiles
array[string] | null
可选
emails
array[string] | null
可选
staffIds
array[string] | null
可选
departmentId
string | null
可选
companyId
string | null
可选
keyword
string | null
可选
limit
integer | null
默认20条
默认值:
20
staffs
array[object (StaffImportForm) {11}] | null
可选
realName
string
姓名
<= 30 字符
account
string
账号
正则匹配:
^[a-zA-Z0-9-_]{1,30}$
password
string
登录密码
正则匹配:
^(?![0-9]+$)(?![a-zA-Z]+$)[0-9a-zA-Z-`=\[\];',.~!@#$%^&*()_+|{}:"?]{8,16}$
department
string | null
部门
jobTitle
string | null
职位
<= 30 字符
staffNo
string | null
工号
<= 30 字符
email
string | null
邮箱
<= 128 字符
正则匹配:
^\s*\w+(?:\.?[\w-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\.[a-zA-Z]+\s*$
mobile
string | null
手机号
<= 11 字符
remark
string | null
备注
<= 200 字符
userId
string | null
用户 Id
lineNum
integer | null
行数
示例
{
"userIds": [
"string"
],
"mobiles": [
"string"
],
"emails": [
"string"
],
"staffIds": [
"string"
],
"departmentId": "string",
"companyId": "string",
"keyword": "string",
"limit": "20",
"staffs": [
{
"realName": "string",
"account": "string",
"password": "string",
"department": "string",
"jobTitle": "string",
"staffNo": "string",
"email": "string",
"mobile": "string",
"remark": "string",
"userId": "string",
"lineNum": 0
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/eims/api/v2/admin/staffs/actions/delete' \
--header 'Content-Type: application/json' \
--data-raw '{
"userIds": [
"string"
],
"mobiles": [
"string"
],
"emails": [
"string"
],
"staffIds": [
"string"
],
"departmentId": "string",
"companyId": "string",
"keyword": "string",
"limit": "20",
"staffs": [
{
"realName": "string",
"account": "string",
"password": "string",
"department": "string",
"jobTitle": "string",
"staffNo": "string",
"email": "string",
"mobile": "string",
"remark": "string",
"userId": "string",
"lineNum": 0
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}