统一身份认证
  1. 1.人员管理
统一身份认证
3.0
  • 3.0
  • 公开接口
    • 3.0接口说明
    • OpenAPI
      • 概述
        THRIFT
      • 1.人员管理
        • 批量获取人员数据
          GET
        • 获取单个人员数据
          GET
        • 添加单个人员数据
          POST
        • 修改单个人员数据
          PUT
        • 删除单个人员数据
          DELETE
        • 批量获取人员照片
          GET
        • 获取单个人员照片
          GET
        • 基本代码
          GET
        • 人员类型代码
          GET
        • 组织机构代码
          GET
      • 2.服务管理
        • 获取服务列表数据
        • 批量删除服务数据
        • 获取单个服务数据
        • 添加单个服务数据
        • 修改单个服务数据
        • 删除单个服务数据
        • 获取服务列表数据(LDAP)
        • 批量删除服务数据(LDAP)
        • 获取单个服务数据(LDAP)
        • 添加单个服务数据(LDAP)
        • 修改单个服务数据(LDAP)
        • 删除单个服务数据(LDAP)
        • 返回属性代码
        • 黑白名单标签代码
      • 3.资源管理
        • 图像资源
      • 获取TOKEN
        GET
      • DEMO
        GET
    • 登录过程接口
      • CAS协议-登录接口
      • CAS协议-票据验证接口
      • 登出接口
      • 用户身份切换
      • SAML1.1协议-登录接口
      • SAML1.1协议-票据验证接口
      • 单点登出接口
    • RestfulApi
      • 第一步 获取tickets
      • 第二步 获取ST
      • 第三部获取用户信息
  1. 1.人员管理

添加单个人员数据

POST
/openapi/v3/users/detail

请求参数

Authorization
在 header 添加参数
token
示例:
token: ********************
Body 参数application/json
name
string 
姓名
必需
schoolid
string 
学工号
必需
ic_type
string 
证件类型代码
必需
ic_number
string 
证件号码
必需
department
array[string]
组织机构代码
必需
type
string 
人员类别代码
必需
sex
string 
性别代码
必需
political
string 
政治面貌代码
必需
candidate_number
string 
考生号
必需
admission_number
string 
录取通知书号
必需
start_date
string 
入校日期
必需
格式:yyyy-MM-dd
end_date
string 
预计离校日期
必需
格式:yyyy-MM-dd
status
string 
在校状态代码
必需
is_disabled
integer 
是否停用
必需
defer_date
string 
定期停用时间
必需
格式:yyyy-MM-dd
modify_comment
string 
修改备注
必需
username
string 
别名
必需
password
string 
密码
必需
email
string 
邮箱
必需
phone
string 
手机号码
必需
attribute
object 
人员扩展字段
必需
user_image
string 
照片
必需
Base64数据
示例
{
	"schoolid": "abc20241127",
	"name": "黄吉军开放接口测试用户",
	"ic_type": "Z",
	"ic_number": "111111",
	"department": ["000000"],
	"type": "L01",
	"is_disabled": "0",
	"password": "123123"
}

示例代码

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://m1.apifoxmock.com/m1/5513456-0-default/openapi/v3/users/detail' \
--header 'Content-Type: application/json' \
--header 'token;' \
--data-raw '{
	"schoolid": "abc20241127",
	"name": "黄吉军开放接口测试用户",
	"ic_type": "Z",
	"ic_number": "111111",
	"department": ["000000"],
	"type": "L01",
	"is_disabled": "0",
	"password": "123123"
}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
data
integer 
必需
description
string 
必需
示例
{
    "code": 0,
    "data": 0,
    "description": "string"
}
修改于 2024-11-27 01:54:19
上一页
获取单个人员数据
下一页
修改单个人员数据
Built with