- Overview of OpenAPI
- SlackOpenAPI
- ShopifyOpenAPI
- GithubAPI
- DiscordOpenAPI
- 历史文档(不推荐)
- 开发钉钉应用
- 服务端API
- 新版服务端API(DingTalk OpenAPI)
- 生态伙伴API
创建用户
POST
http://127.0.0.1/topapi/v2/user/create
服务端API/通讯录管理/用户管理
最后修改时间:2022-08-30 09:19:22
责任人:未设置
说明#
服务地址:https://oapi.dingtalk.com
权限#
应用类型 | 是否支持调用 | 权限申请方式 | API Explorer调试 |
---|---|---|---|
企业内部应用 | 是 | 开发者后台申请 | 调试 |
第三方企业应用 | 否 | — | — |
第三方个人应用 | 否 | — | — |
请求参数
Query 参数
access_token
string
必需
示例值:
{{access_token}}
Body 参数application/json
userid
string
可选
name
string
必需
mobile
string
必需
hide_mobile
boolean
可选
telephone
string
可选
job_number
string
可选
manager_userid
string
可选
title
string
可选
email
string
可选
org_email
string
可选
org_email_type
string
可选
work_place
string
可选
remark
string
可选
dept_id_list
string
必需
dept_order_list
array [object {2}]
可选
dept_id
number
部门ID 。
order
number
可选
dept_title_list
array [object {2}]
可选
dept_id
number
部门ID。
title
string
可选
extension
object
可选
senior_mode
boolean
可选
hired_date
number
可选
login_email
string
登录邮箱。
exclusive_account
boolean
可选
exclusive_account_type
string
可选
loginId
string
可选
init_password
string
可选
示例
{
"extension": "{\"爱好\":\"旅游\"}",
"mobile": "185xxxx7676",
"remark": "备注备注",
"telephone": "010-8xxxxx6-2345",
"hide_mobile": false,
"hired_date": 1597573616828,
"title": "技术总监",
"userid": "zhangsan",
"dept_title_list": [
{
"dept_id": 2,
"title": "资深产品经理"
},
{
"dept_id": 3,
"title": "资深产品经理"
}
],
"work_place": "未来park",
"dept_order_list": [
{
"dept_id": 2,
"order": 1
},
{
"dept_id": 3,
"order": 1
}
],
"senior_mode": false,
"org_email": "test@xxx.com",
"name": "张三",
"dept_id_list": "2,3",
"job_number": "4",
"email": "test@xxx.com"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://127.0.0.1/topapi/v2/user/create?access_token={{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"extension": "{\"爱好\":\"旅游\"}",
"mobile": "185xxxx7676",
"remark": "备注备注",
"telephone": "010-8xxxxx6-2345",
"hide_mobile": false,
"hired_date": 1597573616828,
"title": "技术总监",
"userid": "zhangsan",
"dept_title_list": [
{
"dept_id": 2,
"title": "资深产品经理"
},
{
"dept_id": 3,
"title": "资深产品经理"
}
],
"work_place": "未来park",
"dept_order_list": [
{
"dept_id": 2,
"order": 1
},
{
"dept_id": 3,
"order": 1
}
],
"senior_mode": false,
"org_email": "test@xxx.com",
"name": "张三",
"dept_id_list": "2,3",
"job_number": "4",
"email": "test@xxx.com"
}'
返回响应
🟢200成功
application/json
Body
request_id
string
请求ID。
errcode
number