- 平台简介
- 新手指南
- API协议
- API文档
- 合同管理
- 签署服务
- 组织架构
- 印章管理
- 模板管理
- 业务分类
- 个人认证
- 企业认证
- 外部客户
- 授权管理
- 辅助工具
- 信息校验
- 单点登录集成
- JS SDK文档
- 公告
- 小程序插件
- 常见问题
组织架构-员工详情
POST
/v2/employee/detail
请求参数
Header 参数
x-qys-open-accesstoken
string
可选
默认值:
{{x-qys-open-accesstoken}}
x-qys-open-timestamp
string
可选
默认值:
{{x-qys-open-timestamp}}
x-qys-open-nonce
string
可选
默认值:
{{x-qys-open-nonce}}
x-qys-open-signature
string
可选
默认值:
{{x-qys-open-signature}}
Body 参数application/json
user
object (UserRequest)
员工信息
contact
string
联系方式
contactType
enum<string>
联系类型
枚举值:
MOBILEEMAILEMPLOYEEIDNUMBERBIZID
name
string
姓名
tenantName
string
子公司名称
示例
{
"user": {
"name": "{{addEmployeeName}}",
"contact": "{{addEmployeeContact}}",
"contactType": "MOBILE"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.qiyuesuo.com/v2/employee/detail' \
--header 'x-qys-open-accesstoken: {{x-qys-open-accesstoken}}' \
--header 'x-qys-open-timestamp: {{x-qys-open-timestamp}}' \
--header 'x-qys-open-nonce: {{x-qys-open-nonce}}' \
--header 'x-qys-open-signature: {{x-qys-open-signature}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"user": {
"name": "{{addEmployeeName}}",
"contact": "{{addEmployeeContact}}",
"contactType": "MOBILE"
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
result
object (EmployeeResponse)
必需
id
string
员工ID
name
string
员工姓名
mobile
string
手机号
email
string
邮箱
number
string
员工编号
createTime
string
创建时间
realName
boolean
是否实名认证
enterpriseEmail
string
企业邮箱
roles
array[string]
拥有的角色类型
枚举值:
SYSTEM_ADMINLEGAL_PERSONSEAL_ADMINTEMPLATE_ADMINORDINARY_EMPLOYEE
示例
{
"result": {
"id": "3053242464719733490",
"name": "曹杰",
"createTime": "2023-01-18 16:15:30",
"mobile": "11084005634",
"realName": false,
"roles": [
"ORDINARY_EMPLOYEE"
]
},
"code": 0,
"message": "SUCCESS"
}